this is a big that i noticed and documented with regards to the original square module. not square_webPay.
by running that sql statement you are not losing visibility into how that order was originally charged. if you are ok with that, great. but it is NOT how i would do it. nor is it what i would recommend doing.
i would look into changing the square code as opposed to changing all of one’s data.
do at your own peril.
“to err is human… but to really mess things up you need a computer…. and to mess things up royally you need sql…”
old shakesperean saying.
I'm experiencing the same happening, partial blank page after payment on order details page, but I'm getting this in the logs:
PHP Warning: require(/includes/modules/payment/square_support/square_admin_notification.php): failed to open stream: No such file or directory in /includes/modules/payment/square_webPay.php on line 505.
[31-May-2022 17:01:24 America/Detroit] PHP Fatal error: require(): Failed opening required '/includes/modules/payment/square_support/square_admin_notification.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /includes/modules/payment/square_webPay.php on line 505
I ran the update above (post #131) but error log continues (updated to webPay over the weekend).
Doing a search I found includes/modules/payment/square_webPay.php has this line of code in it require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/square_support/square_admin_notification.php');
Checking the square_webPay folder doesn't contain anything remotely similar to this file in it. Should I modify the file by deleting the line/commenting it or is there another line that should replace it?
that file is part of the base v157 zc install. you should track that file down and upload it to your server.
do not modify the code.
best
Thanks. Yeah, that file is on the deprecated Square plugin which according to the Square WebPay instructions should be removed. Makes no sense to have a plugin that won't work installed so another one could work, unless I'm missing something?![]()
Perhaps an update to the Square WebPay is in order to include that or any other files needed for this new version to work![]()
do not confuse zc v158 (unreleased) with v157 code.
my module is for v157 code. and you have deleted a file from said code base.
see also:
https://github.com/zencart/zencart/p...ent-1138002673
> Yeah, that file is on the deprecated Square plugin which according to the Square WebPay instructions should be removed.
Please don't do this.
Just leave these files be. Appropriate removals will be done when you upgrade to 1.5.8.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
All the files were placed back as they were in the original installation 1.5.7.
Just an observation that removing something implies taking away or out, rather than turning it off. That's where this error of mine came from.
As far as I remember ZC has always had this constant that when one plugin is "removed", the files for that plugin can be safely deleted from the server, until now as far as I can tell. That's why I assumed I was doing the right thing by "removing the deprecated Square plugin" as there was no need for it. Nowhere in any of the files anywhere it stated I shouldn't have done so. Maybe a note in the read-me would help others not make the same error I made(?). Just a suggestion to avoid future mishaps.
Honest mistake on my part. Didn't mean to cause any trouble nor offend anyone. All is well and everything works as it should.
Thanks for the help! I really appreciate it![]()