WordPress.org

Forums

WP Tiles
[resolved] Fatal errors, invalid callback, out of memory (9 posts)

  1. radu
    Member
    Posted 10 months ago #

    Hi, upon activation of the plugin all is ok, however, navigating to any admin page this error is displayed at the top of the page :

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /wp-includes/plugin.php on line 470

    putting the shortcode on a page produces this
    Fatal error: Function name must be a string in /wp-content/plugins/WP-Tiles-dev-1.0/src/WPTiles/Shortcode.php on line 96

    refreshing gets me this
    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 1384639345 bytes) in /wp-includes/plugin.php on line 850

    https://wordpress.org/plugins/wp-tiles/

  2. Mike Martel
    Member
    Plugin Author

    Posted 10 months ago #

    Hi @radu,

    Thanks for trying the beta and I'm sorry to hear you're getting errors! Some digging into the error message brings me to this blog that explains how eAccelerator can mess with closures. Are you on a PHP5.4 / eAccelerator combination by any chance?

    I'll enable eAccelerator and see if I can reproduce this error. Hopefully there is a way to make the plugin compatible again.

    Thanks for reporting this :)

    Mike

  3. radu
    Member
    Posted 10 months ago #

    Hi Mike, thanks for the quick response. I've forwarded this to the server admin to check for the things you mentioned.
    In the meantime, I have also found this, which suggests somewhere a function is being called, or registered, that does no longer exist.
    Given this only happens when i activate the Tiles plugin, I've ruled out my theme. Maybe you're calling a function that was phased out in a recent WP update ?

  4. radu
    Member
    Posted 10 months ago #

    Hi @Mike,
    Our server admin has confirmed we are running eAccelerator, the latest version.
    The article you linked seemed to point towards anonymous functions (closures) as the main culprits, which I'm guessing were used somewhere in the plugin code ?
    If so, maybe we can replace the closures with more compatible functions, i.e. named ones ?

  5. Mike Martel
    Member
    Plugin Author

    Posted 10 months ago #

    Hi radu,

    Sorry for the delayed response! The culprit is indeed closures. I don't there there are too many in WP Tiles, and they are certainly not essential, just handy. I'll go over the plugin and see what I can do and post back here. Hang in there just a bit longer!

    Mike

  6. Mike Martel
    Member
    Plugin Author

    Posted 10 months ago #

    Hi again, I went ahead and made the changes on the no-closures branch on GitHub. I can't test it out with eAccelerator locally at the moment, but it should work. Can you give it a go and let me know if it has worked? Download link is here.

    Mike

  7. radu
    Member
    Posted 10 months ago #

    Hi Mike,
    Thanks for getting back to me & for making the changes. I'll test it and let you know how it goes.

  8. radu
    Member
    Posted 10 months ago #

    Hi Mike,
    Wanted to report back that everything works perfectly now.
    No errors on install, no errors on using the shortcode, the activate/deactivate buttons now show up correctly.
    Top job :)
    Will this fix be included back into the main dev version, or will it remain as a separate fork ?

  9. Mike Martel
    Member
    Plugin Author

    Posted 10 months ago #

    Hi @radu, good to hear it's working! The changes were minimal and only in syntax, so I'm going to merge this into the dev branch shortly (and eventually in master..).

    Thanks for testing!

    Mike

Reply

You must log in to post.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic