Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1023041

    We switched our site to WP Engine and now we can’t add posts or pages. According to WP Engine this is what the error looks like:

    15 PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /nas/content/live/borgensite/wp-content/themes/choices/includes/admin/compat.php:48\nStack trace:\n#0 [internal function]: avia_backend_compatibility_custom_field_filter(”, 284235)\n#1 /nas/content/live/borgensite/wp-includes/class-wp-hook.php(286): call_user_func_array(‘avia_backend_co…’, Array)\n#2 /nas/content/live/borgensite/wp-includes/plugin.php(203): WP_Hook->apply_filters(”, Array)\n#3 /nas/content/live/borgensite/wp-content/themes/choices/framework/php/function-set-avia-frontend.php(262): apply_filters(‘avia_post_meta_…’, ”, 284235)\n#4 [internal function]: avia_post_meta(Object(WP_Post))\n#5 /nas/content/live/borgensite/wp-includes/class-wp-hook.php(288): call_user_func_array(‘avia_post_meta’, Array)\n#6 /nas/content/live/borgensite/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#7 /nas/content/live/borgensite/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\n#8 /nas/content/live/borgensite/wp-includes/class-wp-query. in /nas/content/live/borgensite/wp-content/themes/choices/includes/admin/compat.php on line 48

    Any suggestions on how to fix this?

    #1023544

    Hey borgenproject1,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/choices-and-php7-compatibility-checker-finds-errors-warnings/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1046254

    I’ve a similar problem with choices and php 7.1/7.2

    I can’t edit or add events in Events Manager. The link above to the other topic isn’t useful because the pastebin for the updated compat.php isn’t valid anymore.

    Best regards
    Matthias

    #1047339

    Hello,

    I need really help :-)
    It seems to be a problem of Choices and not of Events Manager. The problem is not that I can’t add events, but I can’t edit events. The list of events is blank in the admin panel. In frontend the events are visible. What is to do?

    Many thanks!

    #1047343

    Hey!

    Please find compat.php file here – https://pastebin.com/FbyZnyYi
    Also, please check out this post – https://kriesi.at/archives/wordpress-5-0-and-enfold-4-5-1

    Regards,
    Yigit

    #1048083

    Many thanks and merry christmas!

    #1048089

    Hi,

    You are welcome!
    Thanks! Merry Christmas and happy new year!

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘PHP Fatal Error – Can't add pages or posts’ is closed to new replies.