• Resolved GDU

    (@gettingdownunder)


    Hey guys

    After updating, I’m getting the following error:

    PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wpforo_is_admin()

    Full error

    `25841#0: *197845 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wpforo_is_admin() in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/go2wpforo/includes/functions.php:7
    Stack trace:
    #0 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/class-wp-hook.php(307): mg2wpforo_init()
    #1 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action()
    #3 /var/www/vhosts/mydomain.com/httpdocs/wp-settings.php(461): do_action()
    #4 /var/www/vhosts/mydomain.com/httpdocs/wp-config.php(59): require_once(‘/var/www/vhosts…’)
    #5 /var/www/vhosts/mydomain.com/httpdocs/wp-load.php(50): require_once(‘/var/www/vhosts…’)
    #6 /var/www/vhosts/mydomain.com/httpdocs/wp-admin/admin-ajax.php(22): require_once(‘/var/www/vhosts…’)
    #7 {main}
    More >>`

    😐

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter GDU

    (@gettingdownunder)

    Downgraded back to 1.9.9.2 and working ok again. I’d appreciate any insight or suggestions before I upgrade again.

    Thanks in advance

    I got the same error today, I have the auto-update for the plug in turned on, and I guess that is what triggered it.

    The plugin version is 2.0.2
    WP version is 6.0.1

    Any details on a fix? I disabled the Plug-in for now

    Plugin Author gVectors Team

    (@gvectors-team)

    @gettingdownunder,
    You don’t need to downgrade. Just delete the old unnecessary go2wpforo plugin, which is still active and causes incompatibility error with wpForo 2.0. Just delete that plugin and update wpForo again.

    If you cannot access to your dashboard, use some FTP client or the File Manager of your hosting cPanel and delete the /go2wpforo/ folder in /wp-content/plugins/ directory.

    The error is caused by very old wpForo migration tool called go2wpforo. It’s not compatible with wpForo v2. This tool only helps to migrate to wpForo, once the migration is finished you should have deactivated and deleted it.

    Thread Starter GDU

    (@gettingdownunder)

    Thanks OK – disabled/deleted go2wpforo and upgraded to the latest version of wpforo.

    This time – When I viewed my forum homepage – I get a critical error with he following in my logs.

    AH01071: Got error 'PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wpforo/includes/functions.php on line 2702PHP message: WordPress database error Unknown column 'facebook' in 'field list' for query SELECTuserid,facebook,twitter,skype,fields\r\n\t\t\tFROMnBD0D5u1_wpforo_profiles\r\n\t\t\tWHERE (facebookIS NOT NULL ANDfacebook<> '') \r\n\t\t\t\tOR (twitterIS NOT NULL ANDtwitter<> '') \r\n\t\t\t\tOR (skypeIS NOT NULL ANDskype<> '') made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('after_setup_theme'), WP_Hook->do_action, WP_Hook->apply_filters, wpforo\\wpforo->wpforo\\{closure}, wpforo\\wpforo->init, wpforo\\wpforo->init_classes, do_action('wpforo_after_init_classes'), WP_Hook->do_action, WP_Hook->apply_filters, wpforo\\classes\\Actions->wpforo\\classes\\{closure}, wpforo_activation, wpforo_alter_tablesPHP message: WordPress database error Unknown column 'rank' in 'nBD0D5u1_wpforo_profiles' for query ALTER TABLEnBD0D5u1_wpforo_profiles\r\n\t\t\tDROP COLUMNusername,\r\n\t\t\tDROP COLUMNlast_login,\r\n\t\t\tDROP COLUMNicq,\r\n\t\t\tDROP COLUMNaim,\r\n\t\t\tDROP COLUMNyahoo,\r\n\t\t\tDROP COLUMNmsn,\r\n\t\t\tDROP COLUMNgtalk,\r\n\t\t\tDROP COLUMNlike,\r\n\t\t\tDROP COLUMNsite,\r\n\t\t\tDROP COLUMNfacebook,\r\n\t\t\tDROP COLUMNtwitter,\r\n\t\t\tDROP COLUMNskype,\r\n\t\t\tADD COLUMNtopicsINT UNSIGNED NOT NULL DEFAULT 0 AFTERposts,\r\n\t\t\tADD COLUMNreactions_inTEXT AFTERcomments,\r\n\t\t\tADD COLUMNreactions_outTEXT AFTERreactions_in,\r\n\t\t\tADD COLUMNpointsINT NOT NULL DEFAULT 0 AFTERreactions_out,\r\n\t\t\tCHANGE COLUMNsecondary_groupssecondary_groupidsVARCHAR(255) AFTERgroupid,\r\n\t\t\tCHANGE COLUMNrankcustom_pointsINT NOT NULL DEFAULT 0 AFTERpoints,\r\n\t\t\tMODIFY COLUMNavatarVARCHAR(255) AFTERsecondary_groupids,\r\n\t\t\tMODIFY COLUMNonline_timeINT UNSIGNED AFTERcustom_points,\r\n\t\t\tMODIFY COLUMNt…’`

    Any assistance with this will be appreciated.

    • This reply was modified 3 years, 10 months ago by GDU.
    Plugin Author gVectors Team

    (@gvectors-team)

    @gettingdownunder,
    All is clear, the update didn’t completed so the database tables are not updated, please go to wpForo > Tools > Database tables Tab and take a screenshot. If you see any error, then just click the [Solve Database problems] button.

    Thread Starter GDU

    (@gettingdownunder)

    Hi guys

    OK – Finally got it working (I think) I ended up deleting the plugin, deleting all of the wpforo DB tables and reinstalling wpforo from fresh.

    I then reimported the content of my forums, posts and topics from a DB backup and left everything else untouched.

    So far so good although I had to disable my redirect2wpforo plugin as this was throwing out errors

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_wpforo_page() in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/redirect2wpforo/redirect2wpforo.php:13\nStack trace:\n#0 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/class-wp-hook.php(307): go2wpforo_do_redirection()\n#1 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#2 /var/www/vhosts/mydomain.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action()\n#3 /var/www/vhosts/mydomain.com/httpdocs/wp-settings.php(530): do_action()\n#4 /var/www/vhosts/mydomain.com/httpdocs/wp-config.php(59): require_once('/var/www/vhosts...')\n#5 /var/www/vhosts/mydomain.com/httpdocs/wp-load.php(50): require_once('/var/www/vhosts...')\n#6 /var/www/vhosts/mydomain.com/httpdocs/wp-blog-header.php(13): require_once('/var/www/vhosts...')\n#7 /var/www/vhosts/mydomain.com/httpdocs/index.php(17): require('/var/www/vhosts...')\n#8 {main}\n thrown in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/re...',

    I’m unsure if this is just a known fault or something specific to my setup.

    Plugin Support gVectors Dev

    (@gvectorsdevs)

    @gettingdownunder,
    thanks for the info.

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

The topic ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wpforo’ is closed to new replies.