Error: Call to undefined function MPHB\Libraries\…

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Error: Call to undefined function MPHB\Libraries\…

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #959940
    Aaron Luo
    Participant

    Hi,

    I tried to deploy my wordpress with Nginx 1.16 & PHP-FPM 7.3 (based on https://hub.docker.com/r/trafex/wordpress/ container) and motopress-hotel-booking Version 3.8.1 plugin enabled. The nginx config is the same with https://github.com/TrafeX/docker-php-nginx/blob/master/config/nginx.conf except a little bit change for the paths. After I activated the plugin and added the contents, I noticed the following errors from log. Could you advise me what’s wrong with it? how should I fix the issue?

    wordpress_1  | [28-May-2020 13:00:31] WARNING: [pool www] child 105 said into stderr: "NOTICE: PHP message: PHP Warning:  Cannot modify header information - headers already sent in /var/www/wp-content/plugins/motopress-hotel-booking/includes/libraries/wp-session-manager/class-wp-session.php on line 127"
    wordpress_1  | 172.18.0.1 - - [28/May/2020:13:00:34 +0000] "POST /wp-admin/admin-ajax.php?action=mphb_ical_sync&nonce=c49ab8be8b HTTP/1.1" 499 0 "http://localhost:8000/wp-admin/admin-ajax.php?action=mphb_ical_sync&nonce=c49ab8be8b" "WordPress/5.4.1; http://localhost:8000" "-" 0.990 0.990 . -
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function MPHB\Libraries\WP_Background_Processing\session_write_close() in /var/www/wp-content/plugins/motopress-hotel-booking/includes/libraries/wp-background-processing/classes/wp-background-process.php:163"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "Stack trace:"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "#0 /var/www/wp-includes/class-wp-hook.php(287): MPHB\Libraries\WP_Background_Processing\WP_Background_Process->maybe_handle('')"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "#1 /var/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "#2 /var/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "#3 /var/www/wp-admin/admin-ajax.php(190): do_action('wp_ajax_nopriv_...')"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "#4 {main}"
    wordpress_1  | [28-May-2020 13:00:38] WARNING: [pool www] child 103 said into stderr: "  thrown in /var/www/wp-content/plugins/motopress-hotel-booking/includes/libraries/wp-background-processing/classes/wp-background-process.php on line 163"

    Thanks & Regards,
    Aaron

    #960252
    J. Davis
    Keymaster

    Hi Aaron,

    Thank you for reaching us out. Make sure there is enabled module php-session for your PHP. It should be enabled for correct functioning.
    Let me know if it is helpful.

    best regards,
    J. Davis

    #960643
    Aaron Luo
    Participant

    Hi Davis,

    Thanks for your help. It works now after I’ve enabled php-session.

    Regards,
    Aaron

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