Public bug reported:
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: aikiframework
Importance: High
Assignee: rejon (rejon)
Status: Confirmed
** Affects: openfontlibrary
Importance: Medium
Assignee: Christopher Adams (christopheradams)
Status: Confirmed
** Changed in: openfontlibrary
Assignee: AiK (aik) => Aiki Framework Developers (aikiframework-devel)
** Also affects: aikiframework
Importance: Undecided
Status: New
** Changed in: aikiframework
Assignee: (unassigned) => rejon (rejon)
** Changed in: openfontlibrary
Assignee: Aiki Framework Developers (aikiframework-devel) => Christopher
Adams (christopheradams)
** Changed in: aikiframework
Milestone: None => 0.9
** Changed in: aikiframework
Importance: Undecided => High
** Changed in: aikiframework
Status: New => Confirmed
--
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/801416
Title:
before all images in assets were being routed through aiki, this
caused problems
Status in Aiki Framework:
Confirmed
Status in Open Font Library:
Confirmed
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/801416/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help : https://help.launchpad.net/ListHelp