HomeBreadcrumb ArrowModulesBreadcrumb ArrowOpenCartBreadcrumb ArrowCustomPageBackgroundBreadcrumb ArrowFatal error: Cannot unset stri...
Thread Solved

Fatal error: Cannot unset string offsets Error

This discussion has been marked as solved
User Image
Steven member
#1 posted on 10/5/13

Hi,

 

I have just installed your product to change the background image on a site I am developing

When I go to custom backgrounds and change anything I get the following error when I go to save - Fatal error: Cannot unset string offsets in /homepages/18/d75731870/htdocs/calverts/admin/model/module/custompagebackground.php on line 47

Once that happens I have to uninstall and then reinstall the product, but the error still occurs.

 

Please can you help?

 

0
User Image
Mihail Stoychev Admin
#2 posted on 10/5/13

Hello Steven,

 
Thanks for reaching us.
 
This seems untypical and may be influenced by server setting, older OpenCart version or different setup.
 
As a first thing, I would ask you to go to edit the file admin/model/module/custompagebackground.php and comment the line 47, i.e. make it look like this by adding two forward slashes,
 

 

//unset($data[$i]['thumb']);
 
I did not reproduce this error when went to "Save", but spotted that the page URL was entered without the trailing slash / (it should be absolutely the same URL as you see it in the browser). Added this trailing slash and now seems to be functioning properly,
 
Hope this helps!
0