Bug #35539 PHP errors at snippets page
Submitted: 24 Mar 2008 22:52 Modified: 21 Apr 2008 13:47
Reporter: Sveta Smirnova Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Websites: MySQLForge Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Jay Pipes CPU Architecture:Any

[24 Mar 2008 22:52] Sveta Smirnova
Description:
PHP errors when trying to open snippets page:

Warning: require_once(../init.php) [function.require-once]: failed to open stream: No such file or directory in /data0/forge/work/snippets/index.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '../init.php' (include_path='.:/usr/share/php:/usr/share/pear') in /data0/forge/work/snippets/index.php on line 5

How to repeat:
Go to http://forge.mysql.com/snippets/
[24 Mar 2008 23:09] Giuseppe Maxia
The "snippets" page has been replaced by the "tools" page.
http://forge.mysql.com/tools/

Jay, would it be possible to have a symbolic link from the old nomenclature to the new one?
[21 Apr 2008 13:47] Jay Pipes
Fixed by adding the following rewrite rules to Apache conf:

RewriteRule ^/snippets/index.php(.*)$ /tools/tool.php$1 [L,R]
RewriteRule ^/snippets(\/*)$ /tools/ [L,R]