ishchai
Forum Replies Created
-
Great! it’s working now, thank you so much for the quick reply and solution
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problems with php version 8.01Thanks, that fixed it.. no more errors!!
Thank you so much and have a great day! ??
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problems with php version 8.01Still something very strange…
I have these two lines in the Repeater Template code:
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘single-post-thumbnail’ ); ?>There are no error on the browser console and the thumbnail images are displayed.
Still, in the Apache error log I find this:PHP Warning: Undefined variable $post in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 5, referer: https://localhost:8080/atikot/%d7%9b%d7%9c-%d7%94%d7%9b%d7%aa%d7%91%d7%95%d7%aa/ [Tue Aug 30 19:54:08.505761 2022] [php:warn] [pid 9440:tid 1880] [client ::1:58758] PHP Warning: Attempt to read property "ID" on null in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 5, referer: https://localhost:8080/atikot/%d7%9b%d7%9c-%d7%94%d7%9b%d7%aa%d7%91%d7%95%d7%aa/
If I add the condition isset($post) the images are not displayed and I get many other error on the Apache log…
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problems with php version 8.01Fixed!
The problem was the function count in the Repeater Template..
For some reason, it didn’t work on the new PHP version.Replaced $numTags = count($posttags);
with $numTags = is_array($posttags) ? count($posttags) : 0 ;Works ok now.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problems with php version 8.01FROM THE APACHE ERROR.LOG:
[Tue Aug 30 19:01:07.240775 2022] [php:warn] [pid 9440:tid 1892] [client ::1:56677] PHP Warning: Undefined variable $post in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 4, referer: https://localhost:8080/atikot/
[Tue Aug 30 19:01:07.240775 2022] [php:warn] [pid 9440:tid 1892] [client ::1:56677] PHP Warning: Attempt to read property “ID” on null in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 4, referer: https://localhost:8080/atikot/
[Tue Aug 30 19:01:07.240775 2022] [php:warn] [pid 9440:tid 1892] [client ::1:56677] PHP Warning: Undefined variable $post in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 5, referer: https://localhost:8080/atikot/
[Tue Aug 30 19:01:07.240775 2022] [php:warn] [pid 9440:tid 1892] [client ::1:56677] PHP Warning: Attempt to read property “ID” on null in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 5, referer: https://localhost:8080/atikot/
[Tue Aug 30 19:01:07.247758 2022] [php:error] [pid 9440:tid 1892] [client ::1:56677] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php:97\nStack trace:\n#0 C:\\xampp\\htdocs\\atikot\\wp-content\\plugins\\ajax-load-more\\core\\functions.php(95): include()\n#1 C:\\xampp\\htdocs\\atikot\\wp-content\\plugins\\ajax-load-more\\ajax-load-more.php(686): alm_loop(‘default’, ‘default’, ‘null’, 8, 1, 1, 1, Array, false)\n#2 C:\\xampp\\htdocs\\atikot\\wp-includes\\class-wp-hook.php(307): AjaxLoadMore->alm_query_posts(”)\n#3 C:\\xampp\\htdocs\\atikot\\wp-includes\\class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)\n#4 C:\\xampp\\htdocs\\atikot\\wp-includes\\plugin.php(476): WP_Hook->do_action(Array)\n#5 C:\\xampp\\htdocs\\atikot\\wp-admin\\admin-ajax.php(187): do_action(‘wp_ajax_alm_get…’)\n#6 {main}\n thrown in C:\\xampp\\htdocs\\atikot\\wp-content\\uploads\\alm_templates\\default.php on line 97, referer: https://localhost:8080/atikot/Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problems with php version 8.01Dear Dcooney,
The plugin works on a website of my client, since it doesn’t work with the new PHP version I downgraded the PHP version on the server so now it works fine there.
So the reason the plugin didn’t work is for sure the new PHP version.
That’s also why it won’t help to give you the link because now it runs on the old PHP version and there’s no issue.
Still, I need to use the newer version on my server so I need to find out the source of the problem.When I check it on localhost that's the error I get on the console: Error: Error: ajax-load-more.min.js?ver=5.5.4.1:6 Request failed with status code 500 at t.exports (ajax-load-more.min.js?ver=5.5.4.1:6:62719) at t.exports (ajax-load-more.min.js?ver=5.5.4.1:6:90936) at XMLHttpRequest.x (ajax-load-more.min.js?ver=5.5.4.1:6:61109) ajax-load-more.min.js?ver=5.5.4.1:6 Error Msg: Request failed with status code 500 ajax-load-more.min.js?ver=5.5.4.1:6 ALM Error started in adminajax ajax-load-more.min.js?ver=5.5.4.1:6 ALM Error
If you don’t know of any issues with the new version, I guess it might be some code inside the Repeater Template that doesn’t work on the new PHP version.
I would love to know your thought about it
Thanks
IshaiNope. I wish.
I didn’t get any answer here eitherCan someone please answer my question?
Thank youForum: Plugins
In reply to: [Contact Form 7] Changing the values of acceptance checkboxok thank you
Forum: Plugins
In reply to: [Contact Form 7] Changing the values of acceptance checkboxHi, I’ve installed the addon to cf7 – ‘Contact form 7 to API + Basic auth’.
Then I’ve used my API key in the API Integration tab, in the ‘Base URL’ field.
Forum: Plugins
In reply to: [LiteSpeed Cache] Image Placeholder Doesn’t WorkWow, you’re a genius.
I’ve looked at the settings of plugins installed on my website, that might have a lazy load feature.
It turns out the Smush plugin had one.
I deactivated the lazy load of smush and now it works like magic.Thank you so much!
IshaiForum: Plugins
In reply to: [Boxzilla] Is it possible to show the pop up only once?Thank you so much
I did it and it worksForum: Plugins
In reply to: [WP YouTube Lyte] Google Search Console shows errorsHello Frank,
Just wanted to update you that I’ve just received an answer from google.
They verified that all the video issues have been fixed.So once again,
Thank you so much!
Have a great day and good healthForum: Plugins
In reply to: [LiteSpeed Cache] Reducing loading time related to javascriptHi,
Thanks for the reply.Just to make sure,
Does that mean that for users that reach my website for the first time it will always take longer to load the page?Forum: Plugins
In reply to: [WP YouTube Lyte] Is there a way to reduce the loading time of the plugin?Alright!
Thank you!