Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: unserialize(): Error at offset #3212

Closed
WTree opened this issue Aug 4, 2015 · 4 comments
Closed

Notice: unserialize(): Error at offset #3212

WTree opened this issue Aug 4, 2015 · 4 comments

Comments

@WTree
Copy link

WTree commented Aug 4, 2015

I had a problem.In 2.0.3.1 for linux :
Notice: unserialize(): Error at offset 0 of 78 bytes in public_html/catalog/model/extension/module.php on line 10

@naimbic
Copy link

naimbic commented Aug 4, 2015

Hello i had similar probleme, may it will help, and i hope opencart team will look to it...

anyway after miss up with ssl urls i got the same error but into index.php and admin/index.php
Solution:
i add this line before the VARIABLE that unserialize

$VARIABLE_MUST_CHANGE['value'] = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':"$2";'", $VARIABLE_MUST_CHANGE['value']);
$config->set($setting['key'], unserialize($setting['value']));

change VARIABLE_MUST_CHANGE to setting in my case

@danielkerr
Copy link
Member

i ont know what you did to cause this but its unlikely it happens as default

@WTree
Copy link
Author

WTree commented Aug 6, 2015

he is just that first install happen this problem

@ghost
Copy link

ghost commented Jul 6, 2018

Estou com o mesmo erro e ainda sem solução.

Add $VARIABLE_MUST_CHANGE ['valor'] = preg_replace ('! S: (\ d +): "(. *?)";! E', "'s:'. Strlen ('$ 2'). ':" $ 2 "; '"); , mas o erro mudou para Parse error: syntax error, unexpected '$'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants