• Hi,

    Our site is often crashing and giving errors.

    The latest is a fatal error, out of memory in home/…/canonical.php

    Can anyone help with the cause of this error? And how to fix it?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That shouldn’t happen but give this a read.

    https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    How much memory is currently allocated per the error message? I’m asking because something else may be causing that error message.

    Thread Starter TheFlaneur

    (@theflaneur)

    Hi Jan,

    Thanks for your reply. This particular error message just appeared once, usually it is a blank screen or a general error.

    This error says:

    Fatal error: Out of memory

    …allocated 113508352 (tried to allocate 196608 bytes) in …

    My host have been helpful and the php memory limit is well over 64MB

    They have made various other adjustments to the wordpress set up and htaccess, but still the site disappears often.

    If you have any ideas what might be causing it please shout them out!

    Thanks
    Jonathan

    Thread Starter TheFlaneur

    (@theflaneur)

    It seems that something is causing memory spikes which regularly crash the site.
    There are no plugins active and the theme is the official WordPress 2014.

    Thank you for any help or suggestions that could sort this out

    Thread Starter TheFlaneur

    (@theflaneur)

    In case it help, the latest error that isn’t generic is:

    Fatal error: Out of memory (allocated 115343360) (tried to allocate 12288 bytes) in …/wp-includes/default-widgets.php on line 95

    Thanks

    Please post the link to your site.

    Thread Starter TheFlaneur

    (@theflaneur)

    Hi,

    Sorry for the delay and thanks for the reply. The site is https://www.flaneur.me.uk

    It now has a simple 2013 WordPress theme. And still crashes.

    Any advice would be great.
    Thanks
    Jonathan

    Struggling. When I look at the links in your page markup, there is a mixture of https://www.flaneur.me.uk and https://flaneur.me.uk, which could be relevant in the light of the error in cannonical.php which is also about urls. I think these urls should be consistent.

    What exactly are the settings at Admin page > Settings > General > WordPress address & ditto Site address? Are they the same? If not, don’t alter them at the moment.

    Thread Starter TheFlaneur

    (@theflaneur)

    Hi Lorro,

    Those settings are both

    https://www.flaneur.me.uk

    Thanks very much for the help,
    Jonathan

    The menu links and some image links are https://flaneur… therefore inconsistent, but I don’t think its that.

    I think next I’d consider the possibility of a corrupt or incomplete WordPress install. Try Admin page > Dashboard > Updates > “Reinstall now”. If its still not working, go for a manual update:
    https://codex.www.ads-software.com/Updating_WordPress#Manual_Update
    Be careful not to lose wp-config.php or the contents of wp-contents/ folder.

    Ultimately, and in the absence of better advice, consider a reinstall in a sub-directory. Use a fresh database and fresh downloads of everything. Export your content and import it into the new install. When its working, point your url to the new install.

    Thread Starter TheFlaneur

    (@theflaneur)

    Hi,

    Thank you very much for looking at the site and taking time to reply.

    I will mention your suggestions to my host and hopefully we can sort it out.

    Thanks again,
    Jonathan

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Out of memory – canonical.php’ is closed to new replies.