rejon (rejon) has assigned this bug to you for Open Font Library:
This part of aiki I didn't analyze completely, but all aiki sites are by
default routing images through aiki optional image_viewer.php which has
caused the following error spew on openfontlibrary.org:
Warning: Error establishing mySQL database connection. Correct user/password?
Correct hostname? Database server running? in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line 118
Warning: mySQL database connection is not active in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line
158
Warning: Invalid argument supplied for foreach() in
/var/www/openfontlibrary.org/htdocs/system/core.php on line 95
Warning: Error establishing mySQL database connection. Correct
user/password? Correct hostname? Database server running? in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line
118
Warning: mySQL database connection is not active in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line
158
Notice: Undefined index: site in
/var/www/openfontlibrary.org/htdocs/aiki.php on line 143
Warning: Error establishing mySQL database connection. Correct
user/password? Correct hostname? Database server running? in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line
118
Warning: mySQL database connection is not active in
/var/www/openfontlibrary.org/htdocs/system/database/mysql.php on line
158
Notice: Use of undefined constant ENABLE_RUNTIME_INSTALLER - assumed
'ENABLE_RUNTIME_INSTALLER' in /var/www/openfontlibrary.org/htdocs/aiki.php on
line 156
Fatal Error: Wrong site name provided.
###
Normal directives in an apache conf or .htaccess look like this:
RewriteRule ^image/(.*)px/(.*)/(.*) assets/apps/image_viewer.php?id=$3&size=$1
&mode=$2
RewriteRule ^image/(.*)px/(.*) assets/apps/image_viewer.php?id=$2&size=$1
RewriteRule ^image/(.*) assets/apps/image_viewer.php?id=$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?pretty=$1 [L,QSA]
###
I commented out these lines on the live site:
RewriteRule ^image/(.*)px/(.*)/(.*) assets/apps/image_viewer.php?id=$3&size=$1
&mode=$2
RewriteRule ^image/(.*)px/(.*) assets/apps/image_viewer.php?id=$2&size=$1
RewriteRule ^image/(.*) assets/apps/image_viewer.php?id=$1
Need to investigate more how to keep this code as pluggable, since its
necessary on openclipart, but not impair aiki functionality. Also, I see it as
unnecessary for default installation to run EVERY image through aiki.
On openfontlibrary, looks like some transient error from this got cached
by varnish and blocked output of image, which shows a problem.
For openfontlibrary, should investigate more what to do on the dev/test
site.
On aiki, need to see how deep this is, and we need to make a course
decision. Seems like something OUTSIDE of the core functionality.
** Affects: openfontlibrary
Importance: Medium
Assignee: Aiki Framework Developers (aikiframework-devel)
Status: Confirmed
--
before all images in assets were being routed through aiki, this caused problems
https://bugs.launchpad.net/bugs/801416
You received this bug notification because you are a member of Aiki Framework
Developers, which is a bug assignee.
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp