• Resolved szotsaki

    (@szotsaki)


    When I want to edit a post on /wp-admin/post.php?post=12345&action=edit I get a simple but effective error message and nothing more:

    Error thrown
    Function name must be a string

    This is on a white page and nothing else is there. Turning on WP_DEBUG and WP_DEBUG_DISPLAY has no effect, they don’t show any additional information.

    When I disable Nextgen gallery, the problem disappears. When I re-enable it, it instantly appears again and makes it impossible to edit posts. I don’t know how to debug it further.

    NGG version: 3.0.6
    Wordpress: 4.9.8

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @szotsaki
    Let’s first check the server settings to make sure you have everything up to date. Reach out to your hosting provider and confirm they have the ww.wp.xz.cn Requirements settings in place:

    MySQL v5.6 (or higher)
    PHP 7.2 (or higher)

    Memory limit: 250MB (or higher)
    Upload limit: 50MB (or higher)
    Post limit: 50MB (or higher)
    /wp-content directory has sufficient permissions (i.e. 755)

    With those in place, everything should work smoothly for you. If the issue still shows up, let’s check to see if there is a plugin conflict happening. Temporarily deactivate all plugins, then reactivate NextGEN Gallery only. Does the issue still appear? If so, temporarily switch to a WordPress default theme (this deactivation is only intended to quickly check to see if the issue goes away or is still present). If by deactivating the other plugins the issue does go away, reactivate each of the other plugins one at a time to locate the culprit. Keep me posted on your results 🙂

    Mihai

    Thread Starter szotsaki

    (@szotsaki)

    Yes, all the requirements are in place. The plugin still blocks the access to edit posts.

    Plugin Contributor Imagely

    (@imagely)

    Hi @szotsaki,

    Thanks for your reply

    Can you please confirm that you have tried to deactivate all the other plugins excepting NextGen and activate a Twenty series theme in order to make sure that there isn’t any plugin that conflicts?

    Please keep us posted 🙂
    Mihai

    • This reply was modified 7 years, 9 months ago by Imagely.
    • This reply was modified 7 years, 9 months ago by Imagely.
    Thread Starter szotsaki

    (@szotsaki)

    You’re right, Mihai. The error was in my theme’s code caused by one of PHP 7 backward incompatible changes, specifically this one.

    I don’t know why it happened only with NGG turned on but now I could fix it.

    Sorry for the noise and thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Editing posts is not possible: “Function name must be a string”’ is closed to new replies.