Support » Plugin: Participants Database » while upgrading php from version 5.6 to 7.4.2 i get a critical error

  • Resolved say_hello

    (@say_hello)


    while upgrading php from version 5.6 to 7.4.2 i get a critical error on the wp-site:

    There has been a critical error on your website.
    Learn more about debugging in WordPress.

    Debugging in WordPress

    note: i will run the debug-settings and try to get more insights

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /sites/www.my-domain.com/wp-content/plugins/participants-database/classes/PDb_Base.php on line 1844

    see more here

    
    Fatal error: Uncaught Exception: Cannot open source device in /sites/www.my-domain.com/wp-content/plugins/participants-database/vendor/wp-session-manager/wp-session-manager.php:46 Stack trace: #0 /sites/www.my-domain.com/wp-content/plugins/participants-database/vendor/wp-session-manager/wp-session-manager.php(46): session_start() #1 /sites/www.my-domain.com/wp-includes/class-wp-hook.php(286): wp_session_manager_start_session() #2 /sites/www.my-domain.com/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #3 /sites/www.my-domain.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /sites/www.my-domain.com/wp-settings.php(392): do_action('plugins_loaded') #5 /sites/www.my-domain.com/wp-config.php(90): require_once('/sites/www.mysite-...') #6 /sites/www.my-domain.com/wp-load.php(37): require_once('/sites/www.mysite-...') #7 /sites/www.my-domain.com/wp-blog-header.php(13): require_once('/sites/www.mysite-...') #8 /sites/www.my-domain.com/index.php(17): require('/sites/www.mysite-...') #9 in /sites/www.my-domain.com/wp-content/plugins/participants-database/vendor/wp-session-manager/wp-session-manager.php on line 46
    There has been a critical error on your website.

    hmm – i try to get more insights

    any ideas!?

    • This topic was modified 2 months ago by say_hello.
    • This topic was modified 2 months ago by say_hello.
    • This topic was modified 2 months ago by James Huff.
Viewing 3 replies - 1 through 3 (of 3 total)
  • say_hello

    (@say_hello)

    hello and good day Roland, dear developer,

    first of all: i am a big big fan of the participants database. At the moment i struggle with some behaviour of the website. Well – after the upgrade of the php-version from .5.6 to 7.4.2 i get errors.

    There has been a critical error on the website.

    and according the error in the message shown above i can conclude:

    Ummm… for the first part, the answer is right there in the error message. In the plugin “participants-database”
    there is a file called “PDb_Base.php” in the directory “classes”.
    On line 1844 you will probably see a line that is doing an operation on a string variable and using array syntax for it. This is deprecated in PHP 7.4. 11

    For instance we can no longer do something like…

    
    $string = "foo";
    
    echo $string[0];  // This use to echo out "f" but not anymore
    
    $string = "bar";
    
    echo $string{1}; // This use to echo out "a" but not anymore

    furthermore we can say: Going from PHP 5 straight to 7.4 is a huge jump… so i have to test thoroughly!

    should i do some extra-thoings with the participants-database?

    love to hear from you

    • This reply was modified 2 months ago by say_hello.
    Plugin Author xnau webdesign

    (@xnau)

    Participants Database is not tested in php 7.4, try using php 7.3

    say_hello

    (@say_hello)

    hello dear Roland – many thanks for the quick reply.

    for the quick and dirty check – can i erase the plugin from the folder – and testrun the whole installation again!!?

    is this a way and a method to do a quick test!?

    update: i did it like so – and found out that if i set the folder of the participants_database – with permission to 000 – and test the whole site – then all goes well.

    no issues left with the site!?

    dear Roland – i am a big big fan of the great participants-database. and i love your plugin.it is one oft he best plugins i ever saw.

    My serveradmin who takes care for the backend – did the upgrade of php to version 7.4 – i hope you test the participants-database within the next few months so that i am able to run your superb plugin in the next time again +#

    Have agreat day and keep up the great project
    it rocks!!!

    • This reply was modified 2 months ago by say_hello.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.