• Welcome to Simple Machines Community Forum. Please login or sign up.
December 04, 2021, 02:53:56 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


404 Error in post options

Started by tRu3_sKiTz0, July 20, 2010, 03:48:41 PM

Previous topic - Next topic

tRu3_sKiTz0

Okay the last most annoying bug that I must remove before my launch is this pesky 404 error that I keep getting when I click the "Additional Options" button below the post entry box. Can anyone help to understand why this is happening. It may be related to a modification but it is such a general issue that I was hoping someone beyond the support threads I've visited could help me out.

Thanks in advance... :-)

gbsothere

What's in your forum's error log that seems to be related?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0


http://www.usgrantdiscussions.com/index.php?action=jsoption;var=collapse_header;val=1;feb7d06f4dc=6267308ae70f21de5f591e08edc40ae0;time=12796300602342: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directoryFile: /home/justin/public_html/Sources/Subs.php
Line: 3035


That is pretty much every error log on the first page.

gbsothere

What is line 3035 of your Subs.php?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0

Is there a way to find that out with out counting them all by hand Lol?

gbsothere

Quote from: tRu3_sKiTz0 on July 20, 2010, 05:03:01 PM
Is there a way to find that out with out counting them all by hand Lol?


*grin*

Well, in most text editors you can view line numbers, but if you want to just attach it here, I'll take a look at it, although I may disappear on you soon; I have to go out in a bit. 
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

gbsothere

*leaving a note for tRu3_sKiTz0*

Sorry, I've run out of time and have to dash, but do attach your Subs.php (by clicking Additional Options below the reply box, browse to it and post) and someone will take a look. 


Also... how did you install the mod (package manager or manually)?
Which 2.x version of SMF? 
What language is your forum set to (Server Settings)? 
Are you using a custom theme?
Check and make sure the file PrettyUrls-Filters.php is actually sitting in your Sources folder.


Just some things you might be asked.


:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0

July 20, 2010, 05:36:03 PM #7 Last Edit: July 20, 2010, 06:39:58 PM by tRu3_sKiTz0
Here is line 3035:

array('<blockquote>' => '<blockquote class="bbc_' . ($quote_alt ?

Part package install part manual.
SMF v2.0RC3.
I've customized the curve theme.


tRu3_sKiTz0

July 20, 2010, 06:57:25 PM #8 Last Edit: July 20, 2010, 07:01:27 PM by tRu3_sKiTz0
I just found this while watching a couple guests:
Quote from: IP log
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?topic=29.msg91;topicseen   Today at 08:17:39 AM
   Guest   8: Undefined variable: sourcedir
?topic=29.msg91;topicseen   Today at 08:17:39 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?board=9.0   Today at 07:46:55 AM
   Guest   8: Undefined variable: sourcedir
?board=9.0   Today at 07:46:55 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?board=2.0   Today at 06:19:33 AM
   Guest   8: Undefined variable: sourcedir
?board=2.0   Today at 06:19:33 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?board=6.0   Today at 05:15:08 AM
   Guest   8: Undefined variable: sourcedir
?board=6.0   Today at 05:15:07 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?topic=52.0   Today at 04:08:01 AM
   Guest   8: Undefined variable: sourcedir
?topic=52.0   Today at 04:08:01 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?topic=46.msg90;topicseen   Today at 03:39:01 AM
   Guest   8: Undefined variable: sourcedir
?topic=46.msg90;topicseen   Today at 03:39:01 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?board=17.0   Today at 02:37:19 AM
   Guest   8: Undefined variable: sourcedir
?board=17.0   Today at 02:37:19 AM
   Guest   2: require_once(/PrettyUrls-Filters.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
?topic=51.0

So even though guests can't post, there is still an error poping up for a guest ip. And it is listed just as it is in the error log. I don't know if this helps but that is what is going on.

tRu3_sKiTz0

Okay when I look at line 3035 of the file by clicking on the error report, I get this line:

require_once($sourcedir . '/PrettyUrls-Filters.php');

I hope this all helps to figure this out.

gbsothere

I really expected this to be sorted, this morning.  Well, I'm up, but still without coffee.  I'll take a look at your Subs.php and, in the meantime, I'd like for you to confirm that your PrettyUrls-Filters.php is actually found in your Sources folder?   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

niko

   Guest   8: Undefined variable: sourcedir

$sourcedir is not in globals. it's trying to find PrettyUrls-Filters.php from root directory of server. not in sources directory.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

tRu3_sKiTz0

So should I put it in the root directory then?

And yes it is in my sources folder.

gbsothere

Quote from: Niko on July 21, 2010, 09:00:15 AM
   Guest   8: Undefined variable: sourcedir

$sourcedir is not in globals. it's trying to find PrettyUrls-Filters.php from root directory of server. not in sources directory.



That's why I'm stumped, Niko...   I've found it in her Subs.php  here, where the parsing instructions say to add it:


global $scripturl, $context, $modSettings, $db_show_debug, $db_cache, $sourcedir;




I've added it one more place, though, where it seems as if it should be....    Thanks!   :)


Try uploading this attached Subs.php to your sources folder, tRu3_sKiTz0, and see if it changes anything.   
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

gbsothere

Quote from: tRu3_sKiTz0 on July 21, 2010, 09:07:09 AM
So should I put it in the root directory then?

And yes it is in my sources folder.


No, that's where it should be.  Try the attached file on my last post.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0

Nope still getting the error. I'm not even sure if this error is the same that is in my error log. I have tried it  a couple times this morning and there are no new logs but I keep getting the error. This is what it looks like when I click more options while posting:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@usgrantdiscussions.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.usgrantdiscussions.com Port 80

gbsothere

Is this Internal Server error new, today?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0

It has been happening for a couple days now. It's the last pesky little bug that I must get fixed. I'm not sure what you mean by new.

gbsothere

I just wondered if you were getting that since uploading that last Subs.php file I gave you.   :)

Tell you what; since yours was fine, let's upload that again, just to put things back to where they were and let me do a bit of searching around.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

tRu3_sKiTz0

Okay sounds good. I will keep searching also. Oh and here are a couple screen shots of the error so you can see what's happening.

Advertisement: