NoDoze Posted September 25, 2010 Share Posted September 25, 2010 The exact same thing is occurring to my site, that is explained in here: http://forum.whmcs.com/showthread.php?t=31282&highlight=checkout+blank I changed the config file, as described in here: http://forum.whmcs.com/showthread.php?t=21317 And the error I get is: Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to allocate 7864320 bytes) in /home/user/public_html/includes/tcpdf_unicode.php on line 16485 What does that mean? Any help appreciated. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted September 25, 2010 Share Posted September 25, 2010 That means that PHP is running out of memory because you only have it set to 15MB. You need to modify the memory_limit setup for that account so you have more memory available. Since its billing software and rather important, I would set it fairly high so you do not have any problems.. Say, 512M would be fine. Theres a number of ways to override the default values. Depending on how your apache/php is setup. You might find this useful: http://wiki.asmallorange.com/PHPOverridePhpIni The first option would be applicable if you're running suPHP, the second if you're running php as a DSO. 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 25, 2010 Author Share Posted September 25, 2010 (edited) I added the: php_value memory_limit 512M to the htaccess file, but now I get a 500 internal server error Edited September 25, 2010 by NoDoze 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 25, 2010 Author Share Posted September 25, 2010 I tried adding a php.ini file to my root folder, but now I get a ionCube not loaded error... Uhgg....sounds like I need a default php.ini example, huh? ...is there a way to refer both the default one and the php.ini I added...? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted September 25, 2010 Share Posted September 25, 2010 Sorry, those instructions are 100% correct. Copy the stock php.ini file to your homedir, and modify it. The default php.ini is usually in /usr/local/lib/php.ini The 500 error you got with the first setup was because you're setup to use suphp. So you would need to add the "SuPHP_ConfigPath" and copy the php.ini as I previously mentioned. 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 25, 2010 Author Share Posted September 25, 2010 okie dokie.....but I'm hosted. I don't have access to the original php.ini hmm..... 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 25, 2010 Author Share Posted September 25, 2010 This was the result of an upgrade... I don't know that would cause these issues... I added the php.ini and the ioncube path extention....But it still says it's not loaded....grrrr... 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted September 25, 2010 Share Posted September 25, 2010 Do you have shell access on this host? You should still be able to access it even from a shell.. If you dont have shell access, you could possibly copy it with php, or ask your host for it. From Shell: cp /usr/local/lib/php.ini ~/ From PHP: <?php copy('/usr/local/lib/php.ini', '/home/YOURUSERNAME/php.ini'); ?> 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 26, 2010 Author Share Posted September 26, 2010 I have no shell access... And... <?php copy('/usr/local/lib/php.ini', '/home/YOURUSERNAME/php.ini'); ?> ...gives a server 500 error.... 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted September 26, 2010 Author Share Posted September 26, 2010 Got it! I had to use the file manager in cpanel...got the php copy to work....made the changes. All good! Thanks! 0 Quote Link to comment 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.