Dirty Butter Posted December 5, 2014 Posted December 5, 2014 All Bsmither's work to add metadata () has improved our situation with Google considerably. But now I have accidentally found this issue. I don't know if it was created by the changes to metadata or something else I have fiddled with. This error message shows at the top of the Customer's page BEFORE I try to create an Advanced search - Warning: preg_match() expects parameter 2 to be string, array given in /home3/butter01/public_html/plushcatalog/classes/config.class.php on line 283Warning: base64_decode() expects parameter 1 to be string, array given in /home3/butter01/public_html/plushcatalog/classes/config.class.php on line 293 /** * Json decode but convert if serialized */ private function _json_decode($string) { if(preg_match('/^a:[0-9]/', $string)) { // convert from serialized and next save will convert $array = unserialize($string); if(isset($array['offline_content']) && !empty($array['offline_content'])) { $array['offline_content'] = base64_decode($array['offline_content']); } if(isset($array['store_copyright']) && !empty($array['store_copyright'])) { $array['store_copyright'] = base64_decode($array['store_copyright']); } return $array; } else { return json_decode(base64_decode($string), true); } } The Debug shows no errors or warnings. I don't have a clue where to look to find the problem. Quote
Dirty Butter Posted December 5, 2014 Author Posted December 5, 2014 I can't change the Title of this topic, but NO - it's not the Advanced Search doing it - it's suddenly showing at the top of ALL my pages!! Quote
Dirty Butter Posted December 5, 2014 Author Posted December 5, 2014 I had not changed any files this morning, but I HAD replaced the All Our %X metadata that had suddenly disappeared from Bsmither's Search meta fix. So I deleted all I had added to the METAFIX on Categories. The error message disappeared. I added the %X metafix back, and the error message is NOT now showing. I'm at a loss to explain this. Hope it makes sense to you, Bsmither, when you have a chance to read this. Quote
bsmither Posted December 5, 2014 Posted December 5, 2014 "the top of the Customer's page" Do you mean the Storefront? Or in admin, Customer List? Quote
Dirty Butter Posted December 5, 2014 Author Posted December 5, 2014 It showed on every page of Storefront and Admin - even the ajax AddtoCart box that Blueprint uses. Quote
bsmither Posted December 5, 2014 Posted December 5, 2014 Please see >this post for that conversation. Quote
Dirty Butter Posted December 5, 2014 Author Posted December 5, 2014 I did have your Github #198 bug fix in place before this error showed up. Quote
Dirty Butter Posted December 5, 2014 Author Posted December 5, 2014 OK - I see you have modified the bug fix. I've put your new version in place. BUT No products show up for Latest Products, Debug does not show, prices do not show when I arrive at a product via the Category sidebox. Temporarily going back to what you had previously as the #198 bug fix. The new bug fix wiped out ALL my Store Settings! That created the error messages shown in #1 here, so I deleted the METAFIX info again, saved, and then reapplied the %X info. Quote
bsmither Posted December 6, 2014 Posted December 6, 2014 I have added some more comments to issue #198. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.