Post by martind200 » Fri Feb 07, 2014 2:27 am

hi

when i go to my store after install i get the following errors

Code: Select all

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 52

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 61

Warning: Invalid argument supplied for foreach() in /home/ysl/public_html/open/index.php on line 61

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 69
then when i go to the admin panel i get

Code: Select all

Notice: Trying to get property of non-object in /home/ysl/public_html/open/admin/index.php on line 43

Warning: Invalid argument supplied for foreach() in /home/ysl/public_html/open/admin/index.php on line 43
and the username and password i set up wont log me in.

any help would be great !

Newbie

Posts

Joined
Fri Feb 07, 2014 2:24 am

Post by butte » Fri Feb 07, 2014 4:24 am

Version? Fresh or upgrade (from what)? It is fussing about the storefront AND the admin index.php files. Are the two index.php files virgin OC files or already rewritten by vqmod installation, and is vqmod meanwhile also (re)installed?

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by martind200 » Fri Feb 07, 2014 4:28 am

version v1.5.6.1

fresh install just done today.

am not sure what you mean virgin OC files ?

i just fallowed the instructions in download

Newbie

Posts

Joined
Fri Feb 07, 2014 2:24 am

Post by butte » Fri Feb 07, 2014 5:13 am

Unmodified.

The version is just now a month old. It is possible that the script did not work right. Hold on while others have a chance to see where you wound up.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by billkor » Sun Feb 23, 2014 2:35 am

i m having the same problem

a clean installation of the 1.5.6.1 and all the files unmodified

i m getting the exact same error messages on the storefront

Notice: Trying to get property of non-object in /home/username/public_html/index.php on line 52

Notice: Trying to get property of non-object in /home/username/public_html/index.php on line 61

Warning: Invalid argument supplied for foreach() in /home/username/public_html/index.php on line 61

Notice: Trying to get property of non-object in /home/username/public_html/index.php on line 69

and then it doesnt let me log in in the admin area

any suggestions?

New member

Posts

Joined
Thu May 03, 2012 5:19 pm

Post by butte » Sun Feb 23, 2014 1:42 pm

martind200 and billkor, which php.exe versions are you running on, and are you running on Apache? You might try switching from mysql to mysqli. There's a mysqli library change by rph, and there's a different mysqli extension in the store.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by billkor » Sun Feb 23, 2014 4:07 pm

Dear Butte

Yes I m running on Apache version 2.2.26
And PHP version 5.2.17


I ll try to follow your advice on MySQL and I ll post the results

New member

Posts

Joined
Thu May 03, 2012 5:19 pm

Post by butte » Mon Feb 24, 2014 8:22 am

billkor, mysqli came out with php 5.3, so odds are against it with 5.2 -- if your sever allows you to choose 5.3, then go with that.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by budiman_sa » Thu Mar 13, 2014 7:44 am

to butte
i got this same problem too, and then i change the version of php to 5.3, then the problem is gone
thanks. O0

Newbie

Posts

Joined
Thu Mar 13, 2014 7:40 am

Post by butte » Wed Mar 19, 2014 9:38 pm

budiman_sa, good. In my experience, 5.3 is the lone smooth and smoothest php for OC 1.5.0.0 through 1.5.6.1, whether using mysql or mysqli, on otherwise proper servers. Servers' overall setups can make or break OC.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by mayor21 » Thu Apr 10, 2014 3:13 pm

butte wrote:billkor, mysqli came out with php 5.3, so odds are against it with 5.2 -- if your sever allows you to choose 5.3, then go with that.
Thank you for your post. I resolved my issue! :D ;D

Currently using OpenCart ver 3.0.2.0
Trend2style.com


User avatar
New member

Posts

Joined
Wed Jul 28, 2010 5:28 pm

Post by toor999 » Sat May 10, 2014 7:13 pm

Greetings,

My hosting provider supplies PHP version 5.4.21 and I am still encountering the same errors that OP specified.
Please take note that I've changed from mysqli to mysql because of the very same error, ie I got that four lines:

Code: Select all

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 52

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 61

Warning: Invalid argument supplied for foreach() in /home/ysl/public_html/open/index.php on line 61

Notice: Trying to get property of non-object in /home/ysl/public_html/open/index.php on line 69
at the storefront just after installation, but after changing to mysql driver they just disappeared, but still I am unable to login because of:

Code: Select all

Notice: Trying to get property of non-object in /home/ysl/public_html/open/admin/index.php on line 43

Warning: Invalid argument supplied for foreach() in /home/ysl/public_html/open/admin/index.php on line 43.
Changing back to mysqli bring back the issue on the storefront, and it does not resolve the admin login issue.

Any help would be greatly appreciated :)

Newbie

Posts

Joined
Sat May 10, 2014 6:51 pm

Post by asbarksdale » Thu Jun 05, 2014 11:30 pm

I had to add the following code to the htaccess file and it worked for me:

# Use PHP 5.3
AddHandler application/x-httpd-php53 .php

Newbie

Posts

Joined
Thu Jun 05, 2014 11:29 pm

Post by catchway » Mon Jul 28, 2014 11:53 pm

i am also getting same error

Newbie

Posts

Joined
Mon Jul 28, 2014 10:58 pm

Post by sinethar » Mon Sep 22, 2014 12:50 am

In your config.php file try changing:
Code:

define('DB_DRIVER', 'mysqli');

to

Code:

define('DB_DRIVER', 'mysql');

Newbie

Posts

Joined
Mon Sep 22, 2014 12:48 am
Who is online

Users browsing this forum: No registered users and 145 guests