|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Using V7.2 When I turn Enable Spider-friendly URLs on the forum ceases to function any ideas why ?
Thanks
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
Are you using relative URL's?
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
Wait, all the forum dont work?
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
are you including any added javascript code, other than the board's javascript?
i found a problem with that, when i was including the code in the footer.
just fishing around for things that you might be doing outside of a vanilla/standard install..
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
If it doesn't work, your webhost doesn't support allowing the path_info variable; if you're using Apache2 you can generally add: AcceptPathInfo On To a .htaccess file; assuming you have permissions to define it anyway  ... Most servers come with the override permission "FileInfo" by default, so it would actually suprise me if you didn't have this permission.
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
Yea, I had a tone of java to for random images and it threw a tantrum, once cleaned up it worked.
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Forum does not even load correctly when I turn this on. relative URL's ? where is that function ?
No code changed or added java
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Turn off spider friendly urls, and then read my previous posting #191436
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
I query webhost server : Does this mean they are used old OS ? General server information: Operating system Linux Service Status Click to View Kernel version 2.6.21-3_1.BHsmp Apache version 1.3.37 (Unix) PERL version 5.8.8 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail Installed Perl Modules Click to View PHP version 5.1.6 MySQL version 5.0.27-standard-log cPanel Build 11.6.0-RELEASE 15076 Time Since Last Reboot 11 day(s) Documentation Click to View If it doesn't work, your webhost doesn't support allowing the path_info variable; if you're using Apache2 you can generally add: AcceptPathInfo On To a .htaccess file; assuming you have permissions to define it anyway  ... Most servers come with the override permission "FileInfo" by default, so it would actually suprise me if you didn't have this permission.
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
You could still try the same thing, but I'm unsure as to if it'd work for apache1 (which yes, is old, but sadly still standard with webhosts that don't want to upgrade... Kind of like PHP5 being out for several years yet and php6 coming out soon, when some webhosts are still pushing php3 or early builds of php4 on their users)
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Do this for me... Create a new file, phpinfo.php: Now, call that file as: http://www.teamzr1.com/phpinfo.php/gizmo/roxAnd search through the page for: /gizmo/rox It should be in an area named "PATH_INFO" It should also show "PATH_TRANSLATED" that should show a filesystem path that'll be something like "/home/undergroundnews/public_html/gizmo/rox"
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Gizmo thanks for the help
Your talking over my head so can you explain more detail ?
Do I create that one line of code in a text editior and then simply name it rox with no extention ?
do a serach with what you mean the SQL database ?
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
You create a new file, named phpinfo.php, in notepad, and then upload it to your webserver
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
OK but then what do I do the search with ?
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
when you run it in your browser you can do a CTRL-F to find what you want.
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
when I call up the file I made, I got this in part of a whole lot of info on that page
PHP Version 5.1.6
System Linux host111.hostmonster.com 2.6.21-3_1.BHsmp #1 SMP Fri Jun 1 09:45:19 MDT 2007 x86_64 Build Date Jun 14 2007 15:05:41 Configure Command './configure' '--enable-pic' '--with-libdir=lib64' '--with-config-file-path=.:/usr/local/Zend/etc/' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-fastcgi' '--with-fastcgi=/usr' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pdflib' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-xsl' '--with-zlib' Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /home/teamzron/public_html/php.ini PHP API 20041225 PHP Extension 20050922 Zend Extension 220051025 Debug Build no Thread Safety disabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*
Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen On On always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log error_log error_log error_prepend_string no value no value error_reporting 2039 2039 expose_php On On extension_dir ./ ./ file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php log_errors On On log_errors_max_len 1024 1024 magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.force_extra_parameters no value no value max_execution_time 30 30 max_input_time 60 60 open_basedir no value no value output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 12 12 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv On On register_globals Off Off register_long_arrays On On report_memleaks On On report_zend_debug On On safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On zend.ze1_compatibility_mode Off Off
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Doing that I get PATH_INFO no value when you run it in your browser you can do a CTRL-F to find what you want.
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Very odd... PATH_INFO no value PATH_TRANSLATED no value ORIG_PATH_TRANSLATED /home/teamzron/public_html/gizmo/rox ORIG_PATH_INFO /gizmo/rox ORIG_SCRIPT_NAME /phpinfo.php ORIG_SCRIPT_FILENAME /home/teamzron/public_html/phpinfo.php It's reading it, but dropping it lol... (orig is what the server reads, the other is what is actually processed) Very odd, but a webserver issue that I'm not sure how to fix...
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Well, you're not alone in this issue, i've found several referances in google such as this, I'll take some time later to see if i can pinpoint anything.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Try this: In libs/ubbthreads.inc.php Replace This: if (isset($_SERVER['PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if With This: if (isset($_SERVER['PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if
elseif (isset($_SERVER['ORIG_PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['ORIG_PATH_INFO'];
} // end if Then enable spider urls.
Last edited by Gizmo; 07/17/2007 4:36 AM.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Though I think if this makes it into the codebase that I like it displayed as this: # In swoops Gizmo to save the day!
if(!$PATH_INFO) {
if (isset($_SERVER['PATH_INFO'])) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if
elseif (isset($_SERVER['ORIG_PATH_INFO'])) {
$PATH_INFO = $_SERVER['ORIG_PATH_INFO'];
} // end if
} // end if
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
enthusiast
Joined: Jun 2007
Posts: 286 |
I added : elseif (isset($_SERVER['ORIG_PATH_INFO']) && !$PATH_INFO) { $PATH_INFO = $_SERVER['ORIG_PATH_INFO']; } // end if after the first line and turned on the friendly spider function Is there a way you can test to see if that makes it work now ? I checked logs which says PRIMARY_SETTINGS SEARCH_FRIENDLY_URLS changed from '0' to '1' but no idea if the function works or not Update with that function turned on main forum page would not show and would instead go right to portal page and clicking on "forum list" only refreshed showing portal page Thanks Try this: In libs/ubbthreads.inc.php Replace This: if (isset($_SERVER['PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if With This: if (isset($_SERVER['PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if
elseif (isset($_SERVER['ORIG_PATH_INFO']) && !$PATH_INFO) {
$PATH_INFO = $_SERVER['ORIG_PATH_INFO'];
} // end if Then enable spider urls.
Last edited by teamzr1; 07/17/2007 4:36 PM. Reason: Not working
JR Team ZR-1 Corvette Racer's
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
The only way to test it would be to have it on; all links will show /'s instead of &= but you'll likely need to clear your cache in both your browser and forums to be able to test it.
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
But yeh if it brings you to your portal page, it's not fixed; not sure why, as i'm sure that section of code is the only area that references path_info
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
Try this one... Though I think if this makes it into the codebase that I like it displayed as this: # In swoops Gizmo to save the day!
if(!$PATH_INFO) {
if (isset($_SERVER['PATH_INFO'])) {
$PATH_INFO = $_SERVER['PATH_INFO'];
} // end if
elseif (isset($_SERVER['ORIG_PATH_INFO'])) {
$PATH_INFO = $_SERVER['ORIG_PATH_INFO'];
} // end if
} // end if If it doesn't work change the rder to the orig first path second
|
|
|
|
Joined: Feb 2004
Posts: 138
member
|
member
Joined: Feb 2004
Posts: 138 |
I am having the same problem. I am using IIS though - how do I fix this?
TR
|
|
|
|
Joined: Jun 2006
Posts: 16,376 Likes: 129
|
Joined: Jun 2006
Posts: 16,376 Likes: 129 |
This was a very rare issue where the isP was populating a variable named ORIG_PATH_INFO vs PATH_INFO; are you SURE you're having this EXACT SAME issue? If so, the fix is posted.
|
|
|
2 members (Gizmo, Conrad),
137
guests, and
156
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|