Page 1 of 1

error after install

Posted: Fri Feb 07, 2014 2:27 am
by martind200
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 !

Re: error after install

Posted: Fri Feb 07, 2014 4:24 am
by butte
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?

Re: error after install

Posted: Fri Feb 07, 2014 4:28 am
by martind200
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

Re: error after install

Posted: Fri Feb 07, 2014 5:13 am
by butte
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.

Re: error after install

Posted: Sun Feb 23, 2014 2:35 am
by billkor
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?

Re: error after install

Posted: Sun Feb 23, 2014 1:42 pm
by butte
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.

Re: error after install

Posted: Sun Feb 23, 2014 4:07 pm
by billkor
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

Re: error after install

Posted: Mon Feb 24, 2014 8:22 am
by butte
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.

Re: error after install

Posted: Thu Mar 13, 2014 7:44 am
by budiman_sa
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

Re: error after install

Posted: Wed Mar 19, 2014 9:38 pm
by butte
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.

Re: error after install

Posted: Thu Apr 10, 2014 3:13 pm
by mayor21
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

Re: error after install

Posted: Sat May 10, 2014 7:13 pm
by toor999
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 :)

Re: error after install

Posted: Thu Jun 05, 2014 11:30 pm
by asbarksdale
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

Re: error after install

Posted: Mon Jul 28, 2014 11:53 pm
by catchway
i am also getting same error

Re: error after install

Posted: Mon Sep 22, 2014 12:50 am
by sinethar
In your config.php file try changing:
Code:

define('DB_DRIVER', 'mysqli');

to

Code:

define('DB_DRIVER', 'mysql');