• Resolved Graham

    (@sandgroper)


    I had to rollback the latest update because I could not open posts.

    Everything worked until I tried to open a post, then I get an error 500.

    Rolled back and worked again.

    PHP Fatal error:  Uncaught Error: Call to undefined function mb_strpos() in /home/xxx/public_html/wp-content/plugins/asgaros-forum/includes/forum.php:1191
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/asgaros-forum/includes/forum.php(1885): AsgarosForum->cut_string('The forum is a ...', 155, true)
    #1 /home/xxx/public_html/wp-content/plugins/asgaros-forum/includes/forum.php(391): AsgarosForum->setParents('1', 'topic')
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(286): AsgarosForum->prepare(Object(WP))
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #4 /home/xxx/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #5 /home/xxx/public_html/wp-includes/class-wp.php(728): do_action_ref_array('wp', Array)
    #6 /home/xxx/public_html/wp-includes/functions.php(960): WP->main('')
    #7 /home/xxx/public_html/wp-blog-header.php(16): wp()
    #8 /home/xxx/public_html/index.php(17): require('/home/xxx/p...')
    #9 {main}
    throw in /home/xxx/public_html/wp-content/plugins/asgaros-forum/includes/forum.php on line 1191
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @sandgroper

    Which version of PHP are you using?

    Thread Starter Graham

    (@sandgroper)

    7.2

    Plugin Author Asgaros

    (@asgaros)

    Seems that the mb-strings module/extension is disabled or not installed on your PHP installation. Thats strange that this issue didnt happen before because those functions are used on other places as well since a long time already.

    Thread Starter Graham

    (@sandgroper)

    Don’t know. Above my pay grade 🙂

    Thread Starter Graham

    (@sandgroper)

    Would that show up in phpinfo.php? If so, where abouts.

    Did a screen search for it using CTRL+F but it didn’t show anything.

    Thread Starter Graham

    (@sandgroper)

    The current line 1191 says strpos, not mb_strpos:

    $space_position = strpos($string, ' ', $length);

    Plugin Author Asgaros

    (@asgaros)

    Hello @sandgroper

    I released a new update and it should be fixed now. Using the mb_strpos function is fine, but it seems that not all servers have installed it. So I make a check first before deciding which one to use. 🙂

    Thread Starter Graham

    (@sandgroper)

    Thanks. That fixed it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Update causes posts to go to error 500’ is closed to new replies.