XF 1.3 Javascript Error

Dynamic

Well-known member
Hi,

I have moved my site to a new server, and I have hotspots by Waindigo running. However, since the move, I am getting this error on the hotspots page - I do not believe it is related to the addon, but an error due to the server config.

Popup Window

The following error occurred
The server responded with an error. The error message is in the JavaScript console.


Console

"XenForo.init() 108ms. jQuery 1.11.0/1.2.8-dev" xenforo.js:209
"PHP <br />
<b>Fatal error</b>: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in <b>/home/xxxxx/public_html/library/XenForo/ViewRenderer/Json.php</b> on line <b>201</b><br />


Does anyone know how to go about fixing this?

Thanks.
"
 
Your PHP config has a memory_limit of 64M. XenForo likes at least 128M.

Your host or server admin needs to edit the php.ini file on the server to increase that limit. Or add this to your library/config.php file (doesn't always work):

Code:
ini_set('memory_limit', -1);

Or add this to a .htaccess file on your server (only works on Apache servers):

Code:
php_value memory_limit -1

You can confirm the memory_limit value by visiting admin.php?tools/phpinfo
 
That said, it may well be related to the add-on if it's happening on that specific page. It may be using a large amount of memory.
 
Thanks for that guys. I added the line of code to config.php and all is working well now. I will go ahead and edit the php.ini file when I get a chance.

Thanks.
 
Back
Top Bottom