Home Forums Newsletter Plugin Support Fatal Error running on an Internal Network

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #327879
    Anonymous
    Inactive

    Is it possible to run either the free or premium version on an internal network? We were testing with the v7.2.2 without any issues. We are getting ready to start implementing Newsletter and upgraded to v8.3.8. We are now getting the following fatal error when trying to access Newsletter on our site.

    PHP Warning: Trying to access array offset on value of type int in /var/www/html/wp-content/plugins/newsletter/main/main-admin.php on line 155
    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/newsletter/main/main-admin.php:155
    Stack trace:
    #0 /var/www/html/wp-content/plugins/newsletter/header.php(222): NewsletterMainAdmin->get_news()
    #1 /var/www/html/wp-content/plugins/newsletter/main/index.php(120): include(‘var/www/html/w…’)
    #2 /var/www/html/wp-content/plugins/newsletter/includes/module-admin.php(177): require(‘var/www/html/w…’)
    #3 /var/www/html/wp-includes/class-wp-hook.php(324): NewsletterModuleAdmin->menu_page(”)
    #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /var/www/html/wp-admin/admin.php(259): do_action(‘toplevel_page_n…’)
    # {main}
    thrown in /var/www/html/wp-content/plugins/newsletter/main/main-admin.php on line 155

    #327882
    Stefano
    Keymaster

    Ho, thank you for reporting. Probably the site cannot connect to our server, we need to intercept that condition. Wuill be fixed on next release (on monday).

    #327883
    Anonymous
    Inactive

    Wow! That is great news. Will keep a lookout for the update.

    Thanks for the great service!

    #327884
    Stefano
    Keymaster

    Meanwhile if you can edit the file, where you find the line

    $news = json_decode(wp_remote_retrieve_body($response), true);

    change it to

    $news = [];

    and the problem should disappear.

    #328130
    Stefano
    Keymaster

    Hi, it should be solved on version 8.3.9.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.