Osclass forums

Support forums => General help => 3.7.x => Topic started by: Anjo on May 27, 2018, 02:40:22 pm

Title: Illegal string offset 'name' in ..........ItemActions.php on line 1175
Post by: Anjo on May 27, 2018, 02:40:22 pm
 :'(
Hello I need your help

I have just installed Osclass, (I set Categories, Location etc...)

When I try to add a ads, I have this error message:

Warning: Illegal string offset 'name' in /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/oc-includes/osclass/ItemActions.php on line 1175

Fatal error: Uncaught Error: Cannot use string offset as an array in /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/oc-includes/osclass/ItemActions.php:1175 Stack trace: #0 /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/oc-includes/osclass/controller/item.php(106): ItemActions->prepareData(true) #1 /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/index.php(97): CWebItem->doModel() #2 {main} thrown in /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/oc-includes/osclass/ItemActions.php on line 1175

I don't Know what to do, help me please :'( :'(
Title: Re: Illegal string offset 'name' in ..........ItemActions.php on line 1175
Post by: WEBmods on May 27, 2018, 03:01:54 pm
Hello,

I'm not sure, but it may be related to your PHP version. What PHP are you using? If it's not PHP 5.6, try switching to it.

Regards.
Title: Re: Illegal string offset 'name' in ..........ItemActions.php on line 1175
Post by: Aficionado on May 27, 2018, 03:04:14 pm
This " /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/" is a hell of a strange path to use.

Title: Re: Illegal string offset 'name' in ..........ItemActions.php on line 1175
Post by: WEBmods on May 27, 2018, 05:46:03 pm
This " /homepages/27/d734749570/htdocs/clickandbuilds/osclass/MyAutres/" is a hell of a strange path to use.

LOL, yeah. But maybe it's hosting related.

Regards.
Title: Re: Illegal string offset 'name' in ..........ItemActions.php on line 1175
Post by: Aficionado on May 27, 2018, 06:00:49 pm
The hosting part stops here:

"/homepages/27/d734749570/htdocs/" i guess. The rest "/clickandbuilds/osclass/MyAutres/" is also 3 levels deeper, so that COULD be a sub-sub folder problem.

In any case the files of Osclass should be in "/homepages/27/d734749570/htdocs/" i think.

I bet this problem is hosting related.