Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
mprough
For your old version you should try Version: 1.0.2
v1.0.2 comes with the same error as @e-standard mentioned:
Quote:
Originally Posted by
e-standard
Got PHP error for higher PHP,such as PHP 7.3.7.2,but there is no such error for PHP 7.0,anyone know how to fix this?
addon_review_reminder.php,
--> PHP Warning: Use of undefined constant IMAGE_REMOVE - assumed 'IMAGE_REMOVE' (this will throw an Error in a future version of PHP) in /home/adm/addon_review_reminder.php on line 421.
Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
siliconbug
v1.0.2 comes with the same error as @e-standard mentioned:
just to make it easy, i would change the IMAGE_REMOVE to 'remove'. ie:
PHP Code:
//from
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', IMAGE_REMOVE, 'id="btnRemove"') . '</a>' . "\n";
//to
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', 'remove', 'id="btnRemove"') . '</a>' . "\n";
v1.0.3 also makes use of `zen_image_submit` which looks deprecated as of zc v1.5.8.
Re: Products Review Reminder [Support Thread]
Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
siliconbug
It works, thanks!
:thumbsup:
Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
carlwhat
just to make it easy, i would change the IMAGE_REMOVE to 'remove'. ie:
PHP Code:
//from
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', IMAGE_REMOVE, 'id="btnRemove"') . '</a>' . "\n";
//to
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', 'remove', 'id="btnRemove"') . '</a>' . "\n";
v1.0.3 also makes use of `zen_image_submit` which looks deprecated as of zc v1.5.8.
zen_image_submit is in a bunch of core files like (includes/functions/html_output.php) for example. It's in bootstrap also.
In any case I have made this change & resubmitted.
Thanks Carl =)
Re: Products Review Reminder [Support Thread]
How do some similar modules allow customer to login via the link supplied in the email reminder? Without them having to put their password in, its already logged in and ready to put review. Just wondering.
Re: Products Review Reminder [Support Thread]
What changes need to be made so customer don't have to login to leave review as some customers use guest checkout.
Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
get2go
What changes need to be made so customer don't have to login to leave review as some customers use guest checkout.
This plugin has no such controls. You will need to find a plugin or code for this. What version are you running?
Re: Products Review Reminder [Support Thread]
ZC 2.01
PhP 8.3
i am getting the following error log when accessing tools->product review reminder
Code:
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /sweety/includes/header.php(71): trigger_error()
#2 /sweety/addon_review_reminder.php(291): require('/home/zch1akhw6...')
#3 /sweety/index.php(16): require('/home/zch1akhw6...')
--> PHP Deprecated: This page requires updates for the next Zen Cart version. Please refer your site developer or plugin author to <a href="https://docs.zen-cart.com/dev/plugins/admin_head_content/" rel="noopener noreferrer" target="_blank">this</a> documentation. in /sweety/includes/header.php on line 71.
[24-Nov-2024 17:53:56 America/Los_Angeles] PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128
--> PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423.
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128
--> PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423.
Should I revert 'remove' to IMAGE_REMOVE ? which would be the opposite of post# 52
Thank you
Re: Products Review Reminder [Support Thread]
Quote:
Originally Posted by
nicksab
ZC 2.01
PhP 8.3
i am getting the following error log when accessing tools->product review reminder
Code:
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /sweety/includes/header.php(71): trigger_error()
#2 /sweety/addon_review_reminder.php(291): require('/home/zch1akhw6...')
#3 /sweety/index.php(16): require('/home/zch1akhw6...')
--> PHP Deprecated: This page requires updates for the next Zen Cart version. Please refer your site developer or plugin author to <a href="https://docs.zen-cart.com/dev/plugins/admin_head_content/" rel="noopener noreferrer" target="_blank">this</a> documentation. in /sweety/includes/header.php on line 71.
[24-Nov-2024 17:53:56 America/Los_Angeles] PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128
--> PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423.
[24-Nov-2024 17:53:56 America/Los_Angeles] Request URI: /sweety/index.php?cmd=addon_review_reminder, IP address: 24.4.88.128
--> PHP Fatal error: Uncaught Error: Undefined constant "remove" in /sweety/addon_review_reminder.php:423
Stack trace:
#0 /sweety/index.php(16): require()
#1 {main}
thrown in /sweety/addon_review_reminder.php on line 423.
Should I revert 'remove' to IMAGE_REMOVE ? which would be the opposite of post# 52
Thank you
apparently my fix was not done properly. change:
PHP Code:
//from
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', remove, 'id="btnRemove"') . '</a>' . "\n";
//to
echo '<a href="' . FILENAME_ADDON_REVIEW_REMINDER . '.php?oid=' . $selected_order_id . '&action=remove">' . zen_image_submit('button_remove.gif', 'remove', 'id="btnRemove"') . '</a>' . "\n";
notice the single quotes around the word remove.
best.