Home Forums WoodMart support forum Internal server error on load more button

Internal server error on load more button

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #436932

    metuza
    Participant

    Hello,

    On frontpage on our 3 websites we have some blogs listed, and i just found that the load more button does not work on frontpage, throws the JS error as below.

    POST
    https://www.mydomain.no/wp-admin/admin-ajax.php
    Status
    500
    Internal Server Error
    VersionHTTP/3
    Transferred1,20 kB (177 B size)
    Referrer Policystrict-origin-when-cross-origin
    Request PriorityHighest

    ajax error blogLoadMore.min.js:1:1500

    There is no problems on blog pages, only front page.

    Tested with all customizations and plugins disabled but still problems.

    Brgds
    Rune

    #436958

    metuza
    Participant

    I also did find an error in my log:
    [21-Jan-2023 22:25:18 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /public/wp-content/themes/woodmart/inc/functions.php:108
    Stack trace:
    #0 /public/wp-includes/class-wp-hook.php(308): woodmart_get_blog_shortcode_ajax(”)
    #1 /public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #2 /public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /public/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_woodmar…’)
    #4 {main}
    thrown in /public/wp-content/themes/woodmart/inc/functions.php on line 108

    A typical PHP8 issue so i updated code as below to fix problem for now:
    if ( ! is_numeric( $atts[‘offset’] ) ) $atts[‘offset’] = 0;
    for( $i = 1; $i < $paged; $i++ ){
    $atts[‘offset’] += (int)$atts[‘items_per_page’];
    }

    Brgds
    Rune

    #437214

    Luke Nielsen
    Keymaster

    Hello,

    Please navigate to WoodMart -> Patcher and make sure that you have applied these patches: 420463 , 424255 .

    https://prnt.sc/6c-9lufEqHW1

    https://prnt.sc/Mhy3fpHKqTR9

    Let me know about results.

    Kind Regards

    #437222

    metuza
    Participant

    Hello,

    Both patches has been applied long time ago, and i am not using elementor. Same problem with all my 3 websites.

    Brgds
    Rune

    #437252

    Luke Nielsen
    Keymaster

    Hello,

    Even after disabling your custom, I cannot see the issue. Could you please describe or send a video for a better understanding of how I can see the issue?

    https://monosnap.com/file/tlBTYcqAZCXLv5RQpx8pOPhDJYjtJK

    Kind Regards

    #437258

    metuza
    Participant

    Did you have access to disable my custom fix? I just tested again, disabled my fix and issue was back again. The issue can now be seen in frontpage, just scroll to just above footer and click the LAST FLERE INNLEGG button. https://www.villmarksbua.no/

    Make sure to refresh page or empty your browsers cache.

    Tested once again on all my 3 websites and issue is the same for all 3.

    Brgds
    Rune

    • This reply was modified 2 years, 1 month ago by metuza.
    #437427

    Luke Nielsen
    Keymaster

    Hello,

    Sorry for the inconvenience.

    Please confirm the permission for the plugins deactivation, switching to the parent/default theme. As soon as we complete the testing we will enable all back.

    Looking forward to collaborating with you.

    Kind Regards

    #437429

    metuza
    Participant

    Hello,

    Sorry no, we have mid day here and traffic to site, and i have already done that several times on 2 of my websites with no luck.

    Last night tested my smallest site in which has just a few plugins. I disabled plugins and activated woodmart default theme. Only active plugins was woocommerce and woodmart core. But problem was still the same.

    It works ok if i switch PHP to 7.4 so it is typically a known PHP8 issue.

    Brgds
    Rune

    #437441

    metuza
    Participant

    Hi again,

    I have setup a fresh staging site, deactivated all plugins and activated woodmart default theme:
    https://staging-villmarksbua-staging.kinsta.cloud/

    Login is the same as live site. Feel free to test whatever needed.

    Brgds
    Rune

    #437490

    Luke Nielsen
    Keymaster

    Hello,

    Please navigate to WoodMart -> Patcher and apply the 437483 patch for fixing that.

    Don’t hesitate to let me know if you need any further help or any other info.

    Kind Regards

    #437496

    metuza
    Participant

    Works great..

    Thank you πŸ™‚

    Brgds
    Rune

    #437498

    Luke Nielsen
    Keymaster

    You are welcome!

    Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Internal server error on load more button’ is closed to new replies.