Fatal Error

Posted in: Newspaper
Post count: 5

Hi,

When i’m browsing my site from time to time it shows me error msg:
Fatal error: Call to undefined function define() in /home/users/aai/public_html/creativeglobe/index.php on line 14
But when i’m logged in everything is all right, error msg is not occuring. I tried to empty cache too but didn’t help.

Plz help me.

CreativeGlobe.PL

Etit: Error occures when i’m clicking on category (main menu) and articles, never on home site.

  • This topic was modified 11 years by Sensej.
Post count: 9544

Might be running out of memory.
Try adding line in your wp-config.php file to increase default memory to at least 96MB, and preferably 128MB.

See my sticky post on site optimization for help on how to do that. 🙂

Line 14 basically is just a line saying to “use a theme” …
define('WP_USE_THEMES', true);

Post count: 5

Just added that one line and my problem is solved. Everything is working fast as hell. Thx, u helped me second time!

Post count: 9544

Heh… I have totally “been there” — so sometimes my “guesses” are not totally wrong 🙂

Glad I could help!

(It is pretty stupid for WP to “default” to 40MB of RAM; which presumes everybody is on a $5 month account; and only way somebody would even know to change that is by reading the “how to edit your wp-config file” docs on the WP official ‘codex’ — and I totally missed this myself until I started doing a WooCommerce site. And then I felt kinda dumb about missing that one line, thinking the server settings would solve it — but noooooo……).

Post count: 5

You solved also my other problem. During Wordfence scanning i had not enough RAM to do it. Every time before scannning i had to turn off other plugin that takes much of memory – Jetpack. Now i don’t have to do it any more, all plugins are working in same time ;]

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.