LucasShaughnessy Posted May 1, 2014 Share Posted May 1, 2014 Heard my site was having a few time outs and was told to go take a look at the error logs. I had no idea what those were so that took a while but I eventually found them - thousands of them Module 'gd' already loaded in Unknown on line 0 Found a few forums that said to comment them out. I'm not a web guy and have no idea what that means or how to do it. Would anyone be kind enough to take a look and help me out? website is www.fotoflare.ca Much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/ Share on other sites More sharing options...
Oliverkahn Posted May 1, 2014 Share Posted May 1, 2014 what error did you get?? Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477864 Share on other sites More sharing options...
ginerjm Posted May 1, 2014 Share Posted May 1, 2014 I'd guess that it is an include (or require) trying to bring in a module repeatedly. Perhaps this is something that changed in a newer version and is now showing as an error whereas it didn't before. Probably have to change all the includes/requires to the "_once" form. Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477868 Share on other sites More sharing options...
LucasShaughnessy Posted May 1, 2014 Author Share Posted May 1, 2014 @Oliverkahn - Module 'gd' already loaded in Unknown on line 0 @ginerjm - How do I change all the includes/requires to the "_once" form? This is way beyond me Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477870 Share on other sites More sharing options...
bsmither Posted May 1, 2014 Share Posted May 1, 2014 (edited) In my experience: Module 'gd' already loaded in Unknown on line 0 means that PHP has attempted to load this module from either the PHP.INI file (the GD or GD2 extension, although the error message might be little different on startup errors) or from a ZendGuard or ionCube loader file that might be using the dl() command. The fact that there is no known file or line number means (IMO) that PHP wasn't running a human-readable script. I think the version of PHP may be prior to 5.3, and this is only a warning. PHP won't crash or exit because something is asking PHP to load this module when it is already loaded. So, I think your time outs are not caused by this situation. Edited May 1, 2014 by bsmither Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477871 Share on other sites More sharing options...
ginerjm Posted May 1, 2014 Share Posted May 1, 2014 This is all a guess. But if that is truly the problem (did you installation recently do a major upgrade?), then each file will have to be edited by hand unless you have a tool that will do this for you. Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477874 Share on other sites More sharing options...
LucasShaughnessy Posted May 1, 2014 Author Share Posted May 1, 2014 Thanks for your post bsmither - What you've said is way over my head. What is the error exactly, what is it doing? I had the website completely overhauled about 2 years ago. Looking at the logs they have been happening since september 23 2013 Quote Link to comment https://forums.phpfreaks.com/topic/288165-php-warning/#findComment-1477876 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.