Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
soxophoneplayer
zc 1.5.5a
Updating my test site from SbyA github I downloaded Mar 3 2016, to new version May 31 2016. Should I run uninstall script before running install script? Or do I need to run the install script at all re the new file set?
In review of the commit history based on that date range and the changes made, the suggestion would be to 1) download the current (updated today) version, 2) run the install again, 3) not remove the plugin (without backup of the products_with_attributes_stock table) if desired to continue using the variants previously created.
Rerunning the install will reset the SBA associated admin configuration options applied, but will also update the database to contain changes incorporated between those dates that have a potential to affect the option name type added by SBA to provide javascript related information when product have a single option name.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
mc12345678
...Rerunning the install will reset the SBA associated admin configuration options applied, but will also update the database to contain changes incorporated between those dates that have a potential to affect the option name type added by SBA to provide javascript related information when product have a single option name.
Files updated. On clicking install script I get an 'error, please refresh and try again'. The only two files different since my last update were admin/SbyA_install, and admin/incl/classes/observers/class.products_with_attributes_stock
Is there a chance there was nothing new the installer needed to do, generating the error? Or is there something I can look for to see if the update happened? The mod seems to be functioning but unsure if there is something I should look at to double check.
(It's also not a big deal for me to uninstall then re-install if that's safest bet - I've only got half a dozen products on this mod so far and I'm just trying to establish best update procedure on the test so my ducks are lined up for live update.)
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
soxophoneplayer
Files updated. On clicking install script I get an 'error, please refresh and try again'. The only two files different since my last update were admin/SbyA_install, and admin/incl/classes/observers/class.products_with_attributes_stock
Is there a chance there was nothing new the installer needed to do, generating the error? Or is there something I can look for to see if the update happened? The mod seems to be functioning but unsure if there is something I should look at to double check.
(It's also not a big deal for me to uninstall then re-install if that's safest bet - I've only got half a dozen products on this mod so far and I'm just trying to establish best update procedure on the test so my ducks are lined up for live update.)
Can you provide the log data for the error generated? Omit the admin directory please. Next, which "version" was used for this test? The one from today or the one from 31 Mar?
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
mc12345678
Can you provide the log data for the error generated? Omit the admin directory please. Next, which "version" was used for this test? The one from today or the one from 31 Mar?
This was on version from today, but hit same error message yesterday with March version - log same. (The curl error shos all the time on my wamp test site.)
[03-Jun-2016 16:11:18 UTC] Request URI: /xxxxxxxxx/options_name_manager.php, IP address: ::1
#1 trigger_error() called at [C:\wamp\www\includes\functions\plugin_support.php:68]
#2 plugin_version_check_for_updates() called at [C:\wamp\www\xxxxxxxx\includes\init_includes\init_responsive_sheffield_blue.php:8 9]
#3 require(C:\wamp\www\xxxxxxxxx\includes\init_includes\init_responsive_sheffield_b lue.php) called at [C:\wamp\www\includes\autoload_func.php:48]
#4 require(C:\wamp\www\includes\autoload_func.php) called at [C:\wamp\www\xxxxxxxxx\includes\application_top.php:171]
#5 require(C:\wamp\www\xxxxxxxxx\includes\application_top.php) called at [C:\wamp\www\xxxxxxx\options_name_manager.php:12]
[03-Jun-2016 16:11:18 UTC] PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain
Trying file_get_contents() instead. in C:\wamp\www\includes\functions\plugin_support.php on line 68
[03-Jun-2016 16:11:18 UTC] PHP Stack trace:
[03-Jun-2016 16:11:18 UTC] PHP 1. {main}() C:\wamp\www\xxxxxxx\options_name_manager.php:0
[03-Jun-2016 16:11:18 UTC] PHP 2. require() C:\wamp\www\xxxxxx\options_name_manager.php:12
[03-Jun-2016 16:11:18 UTC] PHP 3. require() C:\wamp\www\xxxxxxx\includes\application_top.php:171
[03-Jun-2016 16:11:18 UTC] PHP 4. require() C:\wamp\www\includes\autoload_func.php:48
[03-Jun-2016 16:11:18 UTC] PHP 5. plugin_version_check_for_updates() C:\wamp\www\xxxxxxxxx\includes\init_includes\init_responsive_sheffield_blue.php: 89
[03-Jun-2016 16:11:18 UTC] PHP 6. trigger_error() C:\wamp\www\includes\functions\plugin_support.php:68
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
mc12345678
Can you provide the log data for the error generated? Omit the admin directory please. Next, which "version" was used for this test? The one from today or the one from 31 Mar?
Nevermind. Apparently in the last couple of days, an errant \ got added at the first character of line 644 of the install code (admin/stock_by_attr_install.php)...
*shaking head*... Sheesh...
It is removed from the files in github.
Yes, those were the only two files updated since the 31st of Mar...
I guess I could put it another way. At the moment and for a while, I do not expect that any changes will occur to the existing SBA database tables, so therefore I don't see why one would need/want to fully remove the plugin. I am trying to ensure that "reinstalls" do not break the cart (thank you for identifying that there was an issue though), but instead allow forward movement/operation. Later, some things could probably be pulled out of the code.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
soxophoneplayer
This was on version from today, but hit same error message yesterday with March version - log same. (The curl error shos all the time on my wamp test site.)
[03-Jun-2016 16:11:18 UTC] Request URI: /xxxxxxxxx/options_name_manager.php, IP address: ::1
#1 trigger_error() called at [C:\wamp\www\includes\functions\plugin_support.php:68]
#2 plugin_version_check_for_updates() called at [C:\wamp\www\xxxxxxxx\includes\init_includes\init_responsive_sheffield_blue.php:8 9]
#3 require(C:\wamp\www\xxxxxxxxx\includes\init_includes\init_responsive_sheffield_b lue.php) called at [C:\wamp\www\includes\autoload_func.php:48]
#4 require(C:\wamp\www\includes\autoload_func.php) called at [C:\wamp\www\xxxxxxxxx\includes\application_top.php:171]
#5 require(C:\wamp\www\xxxxxxxxx\includes\application_top.php) called at [C:\wamp\www\xxxxxxx\options_name_manager.php:12]
[03-Jun-2016 16:11:18 UTC] PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain
Trying file_get_contents() instead. in C:\wamp\www\includes\functions\plugin_support.php on line 68
[03-Jun-2016 16:11:18 UTC] PHP Stack trace:
[03-Jun-2016 16:11:18 UTC] PHP 1. {main}() C:\wamp\www\xxxxxxx\options_name_manager.php:0
[03-Jun-2016 16:11:18 UTC] PHP 2. require() C:\wamp\www\xxxxxx\options_name_manager.php:12
[03-Jun-2016 16:11:18 UTC] PHP 3. require() C:\wamp\www\xxxxxxx\includes\application_top.php:171
[03-Jun-2016 16:11:18 UTC] PHP 4. require() C:\wamp\www\includes\autoload_func.php:48
[03-Jun-2016 16:11:18 UTC] PHP 5. plugin_version_check_for_updates() C:\wamp\www\xxxxxxxxx\includes\init_includes\init_responsive_sheffield_blue.php: 89
[03-Jun-2016 16:11:18 UTC] PHP 6. trigger_error() C:\wamp\www\includes\functions\plugin_support.php:68
Umm... Only error I found while reviewing the changes made from back in March to now was the extra \ as described above... It was introduced yesterday into the repo, but I'm surprised if that did/could cause the list of log entries provided... Seems unrelated, but if removal of the \ fixes it, then somehow it is/was...
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Quote:
Originally Posted by
mc12345678
Nevermind. Apparently in the last couple of days, an errant \ got added at the first character of line 644 of the install code (admin/stock_by_attr_install.php)...
*shaking head*... Sheesh...
It is removed from the files in github.
Yes, those were the only two files updated since the 31st of Mar...
I guess I could put it another way. At the moment and for a while, I do not expect that any changes will occur to the existing SBA database tables, so therefore I don't see why one would need/want to fully remove the plugin. I am trying to ensure that "reinstalls" do not break the cart (thank you for identifying that there was an issue though), but instead allow forward movement/operation. Later, some things could probably be pulled out of the code.
I was checking my logs - thought all the logs were same, but the one I sent earlier was the one I was getting after failed update. I found the log from actual update attempt:
[03-Jun-2016 15:50:27 UTC] Request URI: /xxx/stock_by_attr_install.php, IP address: ::1
#1 trigger_error() called at [C:\wamp\www\includes\functions\plugin_support.php:68]
#2 plugin_version_check_for_updates() called at [C:\wamp\www\xxxx\includes\init_includes\init_responsive_sheffield_blue.php:89]
#3 require(C:\wamp\www\xxx\includes\init_includes\init_responsive_sheffield_blue.ph p) called at [C:\wamp\www\includes\autoload_func.php:48]
#4 require(C:\wamp\www\includes\autoload_func.php) called at [C:\wamp\www\xxxx\includes\application_top.php:171]
#5 require(C:\wamp\www\xxxx\includes\application_top.php) called at [C:\wamp\www\xxxxx\stock_by_attr_install.php:16]
[03-Jun-2016 15:50:27 UTC] PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain
Trying file_get_contents() instead. in C:\wamp\www\includes\functions\plugin_support.php on line 68
[03-Jun-2016 15:50:27 UTC] PHP Stack trace:
[03-Jun-2016 15:50:27 UTC] PHP 1. {main}() C:\wamp\www\xxxx\stock_by_attr_install.php:0
[03-Jun-2016 15:50:27 UTC] PHP 2. require() C:\wamp\www\xxxxx\stock_by_attr_install.php:16
[03-Jun-2016 15:50:27 UTC] PHP 3. require() C:\wamp\www\xxxxx\includes\application_top.php:171
[03-Jun-2016 15:50:27 UTC] PHP 4. require() C:\wamp\www\includes\autoload_func.php:48
[03-Jun-2016 15:50:27 UTC] PHP 5. plugin_version_check_for_updates() C:\wamp\www\xxxx\includes\init_includes\init_responsive_sheffield_blue.php:89
[03-Jun-2016 15:50:27 UTC] PHP 6. trigger_error() C:\wamp\www\includes\functions\plugin_support.php:68
I'll update that file. I also note the much of the error messages seem related to issue of Responsive Sheffield Blue 2.0 trying to check for a new version when there is none - as reported in that forum.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Yeah, looks like in a way every admin action is being logged. :) what a "feature" :P. What version of ZC are you running? I thought I recalled something in the forum about an "earlier" version of the plugin check code that often would through that error because of something to do with the options setup on the server and the methods used by the plugin version check code.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
I'm on zc 1.5.5a
I tried doing the SbyA upgrade on classic green template with same error. But my Responsive Sheffield Blue 2.0 has core modifcations which must still be in play. I also tried substituting SbyA install file from last two versions - about 4 code changes in all I think - I tried with and without each line of change - all same result.
Also tried commenting out the call to version check the template, which did nothing but I may have commented out too much or not enough - I'm like a blind man running with scissors when I snip code ;o)
I did try doing a uninstall SbyA and then install. No errors. (That was with the version of files I was using yesterday, so without the install file and classes/observers fileupdate - but I will try that again with those. As you suggested, I lost my attribute stock numbers but its only a handful of products and its my test store so that's ok.
So unless its something to do with SbyA update vs SbyA install, its looking more and more like a template issue. I'll report back when I try today's SbyA updates as a fresh install.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
I did a search of the code earlier, SBA doesn't have a version check on it. The version checking software wasn't added until ZC 1.5.3. SBA has been trying to not only keep up with the changes in ZC but also with adding functionality. Version checking is not even on the radar yet, though because potteryhouse had updated ZC with a version functional in ZC 1.5.1, such a check could be incorporated.
As to a fresh install/update, the version check errors you are seeing are unrelated, but if you were able to run the update and not get a blank screen then an install ought to do the same especially now that the tables have been wiped/deleted because of the remove.
To address the version check issue I suggest searching the forum either from within or from outside, but it's not SBA related and I'm drawing a blank about why other than copying the same version check code from a more recent version of ZC.