• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Javascript Error

Dynamic

Well-known member
#1
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.
"
 

Jake Bunce

XenForo moderator
Staff member
#2
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
 

Mike

XenForo developer
Staff member
#3
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.
 

Dynamic

Well-known member
#4
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.