ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
So, somehow the link to "Dynamic Dropdowns" and the link to the "SBA Setup page" has disappeared from the configration dropdown on my Admin page. What did I do?
Two things
Any debug files in the logs folder?
Do you have any footer at the bottom of the page when you try to look at the setup page. https://docs.zen-cart.com/user/troub...ng/blank_page/
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Well, would be nice to understand how it somehow came to be like dbltoe is asking about. But was there a database modification that went wrong? Configure.php file pointing to the wrong database? Accessed an alternate admin directory? Delete some of the language files? Rename files? Sneezed one too many times?
There are quick fixes, but that's more likely to lead to additional problems down the road, especially if the problem happens again. That quick fix would be to basically reinstall or remove and install. Both plugins support that relatively easily, but if can't identify why it happened then either that or something worse may happen next time..
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Is there a version of this that will work with 1.5.7d?
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
I found the GITHUB version
https://github.com/mc12345678/Stock_...butes_Combined
Tried to install it on 1.5.7d but get this when I try to run http://MYWEBSITE.co.uk/MYADMIN/stock...tr_install.php
[06-Jul-2022 15:07:18 Europe/London] PHP Fatal error: Cannot redeclare zen_output_string() (previously declared in /home/MYWEBSITE/public_html/MYADMIN/includes/functions/general.php:39) in /home/MYWEBSITE/public_html/includes/functions/functions_general_shared.php on line 40
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
Hi
Recently updated to SBA Version 1.5.4 for Zen Cart Version 1.5.7d. ebverything works but now generating loads of logs along the lines of :
PHP Warning: Use of undefined constant STOCK_SET_SBA_NUMRECORDS - assumed 'STOCK_SET_SBA_NUMRECORDS' (this will throw an Error in a future version of PHP) in /includes...
or:
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in /includes...
These errors are generated by the various SBA scripts, in fact doing almost anything on y site will generate these errors. hundreds of log files a day... all the same two errors..
So why are these two constants always undefined? Is thre somewhere i could define them to prevent the errors from occuring ?
Thanks for any help...
Kif
The last time that this module had to touch admin/includes/functions files was for support of Zen Cart version 1.5.4 or before. After that point, beginning in Zen Cart 1.5.5, the core code has sufficient features to not require touching those files. Then in 1.5.6 there was no longer a need to touch the catalog functions.
Somewhere along the way excess code has been brought over to your 1.5.7d installation that is not needed for this module being installed to a clean install.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Yes, by preforming the install in the admin. Log into your admin, then replace index.php with stock_by_attr_install.php and file the guidance for the install.
Why are they not otherwise guarded from occurring? Once installed (database updated to support operation) , the problem goes away.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
SBA Version 1.5.4 for Zen Cart Version 1.5.7d
I have installed fresh installation of Zen Cart Version 1.5.7d
Installed SBA version 1.5.4 from Stock_By_Attributes_Combined-master. Upgraded SBA to 1.5.7.
Everything workss fine but SBA scripts are producing hundreds of error files. Te errors are always the same and refer to undefined constants
The error files all contain warnings as follows:
[22-Aug-2022 22:53:05 UTC] Request URI: /index.php?main_page=product_info&cPath=1&products_id=245, IP address: 54.36.148.174
#1 products_with_attributes_stock->updateNotifyAttributesModuleStartOptionsLoop() called at [/includes/classes/class.base.php:118]
#2 base->notify() called at [/includes/modules/attributes.php:152]
#3 require(/includes/modules/attributes.php) called at [/includes/modules/pages/product_info/main_template_vars.php:50]
#4 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/default_template/common/tpl_main_page.php:171]
#5 require(/includes/templates/default_template/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in /includes/classes/observers/class.products_with_attributes_stock.php on line 679.
or
[22-Aug-2022 22:19:49 UTC] Request URI: /admin/index.php?cmd=products_with_attributes_stock, IP address: 146.70.133.120
#1 products_with_attributes_stock->displayFilteredRows() called at [/admin/products_with_attributes_stock.php:1506]
#2 require(/kazadmin/products_with_attributes_stock.php) called at [/admin/index.php:11]
--> PHP Warning: Use of undefined constant STOCK_SET_SBA_NUMRECORDS - assumed 'STOCK_SET_SBA_NUMRECORDS' (this will throw an Error in a future version of PHP) in /admin/includes/classes/products_with_attributes_stock.php on line 349.
More often than not the error files contain repetitions of the two warnings above. occasionally the error message may refer to a different undefined constant, but more often thn not it's refering to these two, STOCK_SET_SBA_NUMRECORDS and PRODINFO_ATTRIBUTE_DYNAMIC_STATUS.
It's just a warning message and i wouldnt normally be overly concerned but its producing hundreds of log files full of the warnings every day and its a tad tedius dealing with them all of the time...
Any ideas why this is happening or how i might fix it please?
frumious
Bookmarks