Home › Forums › WoodMart support forum › Internal server error on load more button
Internal server error on load more button
- This topic has 11 replies, 2 voices, and was last updated 2 years, 1 month ago by
Luke Nielsen.
-
AuthorPosts
-
January 21, 2023 at 8:41 pm #436932
metuzaParticipantHello,
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 PriorityHighestajax 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
RuneJanuary 22, 2023 at 3:10 am #436958
metuzaParticipantI 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 108A 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
RuneJanuary 23, 2023 at 3:25 pm #437214
Luke NielsenKeymasterHello,
Please navigate to WoodMart -> Patcher and make sure that you have applied these patches:
420463
,424255
.Let me know about results.
Kind Regards
January 23, 2023 at 4:09 pm #437222
metuzaParticipantHello,
Both patches has been applied long time ago, and i am not using elementor. Same problem with all my 3 websites.
Brgds
RuneJanuary 23, 2023 at 6:22 pm #437252
Luke NielsenKeymasterHello,
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
January 23, 2023 at 6:40 pm #437258
metuzaParticipantDid 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.
January 24, 2023 at 3:22 pm #437427
Luke NielsenKeymasterHello,
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
January 24, 2023 at 3:35 pm #437429
metuzaParticipantHello,
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
RuneJanuary 24, 2023 at 4:23 pm #437441
metuzaParticipantHi 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
RuneJanuary 24, 2023 at 5:56 pm #437490
Luke NielsenKeymasterHello,
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
January 24, 2023 at 6:12 pm #437496
metuzaParticipantWorks great..
Thank you π
Brgds
RuneJanuary 24, 2023 at 6:17 pm #437498
Luke NielsenKeymasterYou 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
-
This reply was modified 2 years, 1 month ago by
-
AuthorPosts
The topic ‘Internal server error on load more button’ is closed to new replies.
- You must be logged in to create new topics. Login / Register