Hi David,
I noticed Wordpress is up to version 5 now. I am considering using the WP plugin for a new site & was wondering if there are any updates planned in the near future to cater for v5?
Thanks
Gav
Hi Graham,
I've completed the standalone update and moving on to test / update if required the plugins this week, aiming to publish both first week of next month.
Cheers,
David.
--
PriceTapestry.com
Ok, thanks David.
I'll check back with you then.
Thanks.
Hi,
I have just published standalone Price Tapestry distribution 20/10A, a maintenance release and updated for PHP version 8. For PHP version 8 compatibility there is in fact only one change required to earlier distributions due to deprecation of Magic Quotes functionality. To patch, edit includes/widget.php and look for the following code at line 351:
if (get_magic_quotes_gpc())
...and REPLACE with:
if (FALSE)
Regarding PriceTapestry.org for WordPress, version 3.0 (BETA) is compatible with WP v5 and PHP 7 however WordPress itself is not yet fully compatible with PHP 8 so I am waiting for a subsequent release that confirms PHP 8 compatibility at which point I will test and release the plugin at verion 4.0.
Cheers,
David.
--
PriceTapestry.com
Hi David,
All the best for 2022...
Have been eagerly waiting for some news regarding the promised update for the WP version, hence why I've just checked in.
A little shocked to see the message on the home page "These plugins are no longer maintained".
Does that mean there will not be a version 4 now?
I always use the latest version of WP on my sites. Currently 5.8.2, which although appears to still be in beta seems to be working quite well with PHP 8 from what I read.
Most of my sites use the WP version and I was just going to start updating them to PHP 8, will this now be possible?
Hi,
Thanks HNY also.
Unfortunately the plugins were taking up way too much time in support commitment and were becoming increasingly difficult to maintain; especially where third party plugins and themes start to interact with how things work but there shouldn't be any problems with PHP version 8 but if you do come across anything specific, let me know and I'll try and help out of course...
Cheers,
David.
--
PriceTapestry.com
Hi David,
sorry to highjack the forum here, but since I haven't used the plugin for quite sometime and now wanted to go back, does the "no longer mainatained" also mean that at some point support will be either redced or non existent?
Is it possible to use the pricetapestry.com instead of the plugin then and what would be the difference?
Thanks and sorry for all those questions. But not a pro here...
Hi,
I'm not planning to take them down just no longer maintaining them e.g. for any future versions of WordPress etc. as they were taking too much time in support but should there by any issues regarding PHP deprecations in the future that require a patch just let me know and I'll be happy to document the changes required...
Cheers,
David.
--
PriceTapestry.com
Hi David,
hope you are well.
I've attempted to update to PHP 8.0 on one of my installs and immediately get the WP "There has been a critical error on this website."
Have implemented your advised changes to includes/widget.php.
Error log showing:
"PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/xxxxxxxx/public_html/wp-includes/class-wp-widget-factory.php on line 61 and at least 2 expected in /home/xxxxxxxx/public_html/wp-includes/class-wp-widget.php:162
Stack trace:
#0 /home/xxxxxxxx/public_html/wp-includes/class-wp-widget-factory.php(61): WP_Widget->__construct()
#1 /home/xxxxxxxx/public_html/wp-includes/widgets.php(115): WP_Widget_Factory->register()
#2 /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php(162): register_widget()
#3 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(307): pto_widgets_init()
#4 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 /home/xxxxxxxx/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
#6 /home/xxxxxxxx/public_html/wp-includes/widgets.php(1854): do_action()
#7 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(307): wp_widgets_init()
#8 /home/xxxxxxxx/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#9 /home/xxxxxxxx/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
#10 /home/xxxxxxxx/public_html/wp-settings.php(598): do_action()
#11 /home/xxxxxxxx/public_html/wp-config.php(82): require_once('/home/bestprix/...')
#12 /home/xxxxxxxx/public_html/wp-load.php(50): require_once('/home/bestprix/...')
#13 /home/xxxxxxxx/public_html/wp-blog-header.php(13): require_once('/home/bestprix/...')
#14 /home/xxxxxxxx/public_html/index.php(17): require('/home/bestprix/...')
#15 {main}
thrown in /home/xxxxxxxx/public_html/wp-includes/class-wp-widget.php on line 162"
Any assistance to fix this would be appreciated.
Graham
Hi Graham,
Try a Search and Replace as follows:
Search:
parent::WP_Widget
Replace:
parent::__construct
...in the following files:
pto_atoz.php (1 instance)
pto_search.php (2 instances)
pto_featured.php (1 instance)
Cheers,
David.
--
PriceTapestry.com
Hi David,
thanks for your reply.
Only had to make changes to pto_atoz.php.
Unfortunately still giving same error!
Do you have any other suggestions?
Graham
Hi David, not sure if you misread my last reply, apologies for any confusuion.
Is there a solution for these error's ?
Hi Graham,
What WordPress version are you running?
Cheers,
David.
--
PriceTapestry.com
Thanks Graham,
Thankfully just a small change in widget registration for WP6. With the above fix already applied to pto_atoz.php, make additional changes as follows;
Edit pto_atoz.php and look for the following code at line 169:
function pto_atoz_widget()
...and REPLACE with:
function __construct()
Edit pto_search.php and look for the following code at line 110:
function pto_search_widget()
...and REPLACE with:
function __construct()
...and then the following code at line 1073:
function pto_search_filters_widget()
...and REPLACE with:
function __construct()
Edit pto_featured.php and look for the following code at line 220:
function pto_featured_widget()
...and REPLACE with:
function __construct()
Cheers,
David.
--
PriceTapestry.com
Many thanks David.
Have tried with PHP 8.0 and PHP 8.1, both seem to be working well now, quite a speed improvement.
Appreciate your assistance.
Graham
Hi David,
Have noticed the sites that I have now updated to PHP 8.1, although appear to be working fine from the front-end, are producing some quite large error logs as follows;
[09-Jun-2022 05:10:11 UTC] PHP Warning: Undefined array key "index.php?pagename=/shopping&pto_module=merchant" in /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php on line 450
[09-Jun-2022 05:10:19 UTC] PHP Warning: Undefined array key "index.php?pagename=/shopping&pto_module=merchant" in /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php on line 450
[09-Jun-2022 05:10:21 UTC] PHP Warning: Undefined array key "index.php?pagename=/shopping&pto_module=merchant" in /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php on line 450
[09-Jun-2022 05:10:26 UTC] PHP Warning: Undefined array key "index.php?pagename=/shopping&pto_module=merchant" in /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php on line 450
[09-Jun-2022 05:10:32 UTC] PHP Warning: Undefined array key "index.php?pagename=/shopping&pto_module=merchant" in /home/xxxxxxxx/public_html/wp-content/plugins/pto/pto.php on line 450
Have you any idea what could be causing this and how to fix?
Regards,
Graham
Hi Graham,
To clear this particular warning, edit pto.php and look for the following code beginning at line 448:
(!isset($rules[$k]))
||
($rules[$k] <> $rules[$v])
...and REPLACE with:
(!isset($rules[$k]))
||
(!isset($rules[$v]))
||
($rules[$k] <> $rules[$v])
Cheers,
David.
--
PriceTapestry.com
Hello Gav and welcome to the forum,
I'm shortly about to build a PHP8/WP5 test server and will update the plugin for V5 if required alongside a maintenance release of the core script. Watch the forum for updates towards the middle of next month...
Cheers,
David.
--
PriceTapestry.com