PDA

View Full Version : Info: Fix cgi-sys redirects and member.php errors in 4.0.4


Valter
06-19-2010, 09:33 PM
I've just upgraded to 4.0.4 and get errors mentioned in title.

Here is how to fix them.

1. In class_core.php:

Change:
$url_info['script'] = '/' . ltrim($url_info['script'], '/\\');
to:
$url_info['script'] = '/' . ltrim($_SERVER['SCRIPT_NAME'], '/\\');


2. In member.php comment following lines:

$author_list_url = vBCms_Route_List::getURL($segments);
$page_templater->register('author_list_url', $author_list_url);

Credit goes to people who posted this at vB.com.

--------------- Added 1276988321 at 1276988321 ---------------

More...

For some reason gif smilies are broken because GIF is changed to PNG by update. To re-enable these edit them and change PNG to GIF again.

ChopSuey
06-20-2010, 02:05 PM
Thanks for this :)

huike
07-09-2010, 01:44 PM
2. In member.php comment following lines:

$author_list_url = vBCms_Route_List::getURL($segments);
$page_templater->register('author_list_url', $author_list_url);
Hello, what do you mean with "comment following lines"? i understand replace, but comment?

Thanks.

BSMedia
07-09-2010, 03:58 PM
To comment lines you simple add two forward facing slashes

// this line is commented out.