4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: rm249 on September 26, 2006, 04:09:55 AM
-
Hello, My name is Ryan and I use 4images for my flash games / animations website rm249.com. The other day, randomly, 4images started displaying just a white page with nothing in it. One thing that I did notice is that when I renamed the ./data/media/ and ./data/thumbnails/ folders to a different name, it did load (The page with templates)
One time it did show this one error at the top "Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/rm249/public_html/gallery2/includes/db_mysql.php on line 39
An unexpected error occured. Please try again later.", with the template (somewhat) loaded, without the New Images.
The URL to my 4images is http://www.rm249.com/gallery/
PHP Info - http://www.rm249.com/gallery/phpinfo.php
Any help would be greatly appreciated.
Thanks,
Ryan
-
1) 4images version?
2) check server error logs
-
Latest version, (I even tried downloading the latest version and copying the config.php and all the data files into it, same problem. Same problem when changing template to default as well. Error log has no errors regarding the 4images application.
-
in global.php replace
error_reporting(E_ERROR | E_WARNING | E_PARSE);
with:error_reporting(E_ALL);
but if the error you showed above is the same error happening right now, then the answer is simple - contact your host administrator, something wrong with mysql server.
-
Ok, after enabling errors, this error shows:
Fatal error: Call to a member function query() on a non-object in /home/rm249/public_html/gallery2/includes/sessions.php on line 226
Thanks again for your help.
Ryan
-
reupload includes/db_mysql.php if this wont help, then there is something wrong with your mysql server.
-
It is just blank now again. About the MySQL Server, what exactly would cause that, the reason being because the site is acutally hosted on me and my friend's server... so we have total access to everything, is there anything you can suggest to do?
Thanks,
Ryan
-
Does anyone have any suggestions?
-
After some working on my own temporary frontend, I was able to solve the problem.
For some weird reason, PHP was giving this error when I tried to use getimagesize on a large SWF file:
Fatal error: Allowed memory size of XXXXXX bytes exhausted (tried to allocate XXXXXX bytes)
To fix it, I added this to global.php
ini_set("memory_limit","50M");
And it now works... kinda weird that that happened, must be a weird bug with PHP 5?
-
Same problem,
But the solution wasn't enough !
still having same problem
any idea?