History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: OSC-58
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Harald Ponce de Leon
Reporter: Gavin McDonald
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
osCommerce Core

Can not log in to Admin Area after Installation of 3.0 Alpha 3

Created: 05/Nov/06 01:32 PM   Updated: 06/Mar/07 07:37 PM
Component/s: Installation
Affects Version/s: 3.0 Alpha 3
Fix Version/s: 3.0 Alpha 4

Environment: WinXp SP2 - PHP 5.2.0 Stable - MySQL 5.0.22 Community - Apache 2.2.2


 Description  « Hide
Installation went ok except for 1 issue in that it could not import sample data, so I unticked that option and installation completed.
The rest of the installation went ok and the Shop appears fine in the web browser although as expected there is no sample data.

I tried to log in to the Admin Area without success. Username and Password is correct and made sure by editing the database and re-entering them.

Looking in the Apache Logs I get this :-

[Sun Nov 05 16:26:00 2006] [error] [client 192.168.15.1] PHP Notice: Use of undefined constant MODULE_SERVICES_INSTALLED - assumed 'MODULE_SERVICES_INSTALLED' in D:\\accounts\\oscommerce\\includes\\classes\\services.php on line 20
[Sun Nov 05 16:26:00 2006] [error] [client 192.168.15.1] PHP Warning: osC_Services::include(includes/services/MODULE_SERVICES_INSTALLED.php) [<a href='function.osC-Services-include'>function.osC-Services-include</a>]: failed to open stream: No such file or directory in D:\\accounts\\oscommerce\\includes\\classes\\services.php on line 49
[Sun Nov 05 16:26:00 2006] [error] [client 192.168.15.1] PHP Warning: osC_Services::include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/services/MODULE_SERVICES_INSTALLED.php' for inclusion (include_path='.;C:\\php5\\pear') in D:\\accounts\\oscommerce\\includes\\classes\\services.php on line 49
[Sun Nov 05 16:26:00 2006] [error] [client 192.168.15.1] PHP Notice: Undefined variable: osC_Language in D:\\accounts\\oscommerce\\index.php on line 17
[Sun Nov 05 16:26:00 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function load() on a non-object in D:\\accounts\\oscommerce\\index.php on line 17
[Sun Nov 05 16:32:25 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205
[Sun Nov 05 16:32:41 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php?osCAdminID=20msrbdigcuocehv743mnmcch2
[Sun Nov 05 16:32:41 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php?osCAdminID=20msrbdigcuocehv743mnmcch2
[Sun Nov 05 16:33:00 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php
[Sun Nov 05 16:33:01 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php
[Sun Nov 05 16:33:25 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php?action=process
[Sun Nov 05 16:33:25 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php?action=process
[Sun Nov 05 16:33:48 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/install/install.php?step=4
[Sun Nov 05 16:34:01 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php
[Sun Nov 05 16:34:02 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205, referer: http://oscommerce.kicks-ass.net/admin/login.php
[Sun Nov 05 17:40:05 2006] [error] [client 192.168.15.1] PHP Fatal error: Call to a member function query() on a non-object in D:\\accounts\\oscommerce\\includes\\classes\\session.php on line 205

So, not sure what I am looking at here.

All the new versions of Apache/PHP/mySQL seem to perform correctly with each other otherwise.

Any Ideas?


 All   Comments   Change History      Sort Order:
Harald Ponce de Leon [05/Nov/06 07:21 PM]
Hi Gavin..

Can you see if r1107 fixes this for you? It would be great if you could try the installation again (including sample data) with the changes applied.

Thanks.

Gavin McDonald [06/Nov/06 12:28 AM]
Thanks,

Applied fix, I still get an error during install to do with sample data :-

"There was a problem importing the database sample data. The following error had occured:
1264: Out of range value adjusted for column 'id' at row 1; INSERT INTO osc_products_images VALUES ('', 1, 'pro_php_security.jpg', 1, 0, now());
Please verify the database server and try again."

So again to test the rest of the install I untick the sample data and the rest of the install completes fine.

The good news is that I CAN now get into the Admin area.
A quick test shows I can add catagories,products,manufacturers no problem.
I can not add a new Administrator due to an undefined error.

So I guess the r1107 fix worked, but am now probably looking at a different problem with the sample data,
should I file a separate Jira bug for this one? I get no Apache error log info regarding this.

Thanks

Gav...


Gavin McDonald [06/Nov/06 12:49 AM]
Any chance I could have access to download trunk from SVN, would be much easier to apply patches and know we have the same working version when/if I submit more bugs etc...

Thanks

Gavin McDonald [06/Nov/06 02:56 AM]
I have the correct SVN download location now thanks, ignore last comment then.

Gavin McDonald [06/Nov/06 12:16 PM]
Just confirming I am using trunk now rather than patching r1107 to the dowloaded version.

Also confirming the above errors still.

Gav...

Harald Ponce de Leon [06/Nov/06 12:21 PM]
This should be fixed in r1109:

"MySQL 5 STRICT_TRANS_TABLES compatibility fix"

Harald Ponce de Leon [06/Nov/06 12:40 PM]
The problem of adding new administrators has been fixed in r1111.

Gavin McDonald [06/Nov/06 01:10 PM]
Yes I fixed the sample data error earlier and was about to post it here as a patch but your too quick for me :)

Regarding the new administrators fix r1111 - doing a new install does not now save the main Administrator Username and Password that is entered on installation pages.

I checked the tables and it is blank so something changed is stopping the installation main Admin from being saved to the db.

Harald Ponce de Leon [06/Nov/06 01:42 PM]
Sorry about that - that should be fixed in r1113.

Gavin McDonald [06/Nov/06 01:43 PM]
I reverted back to r1109 and the main Administrator Username and password again get stored so can access the admin control panel again, of course the fix for adding a new administrator is removed so this still does not work. The sample data fix still works fine as it should.

Gavin McDonald [06/Nov/06 02:10 PM]
Ok, back to HEAD now and it all works fine, thanks very much :)

paul cameron [12/Jan/07 06:07 AM]
how does one get these updates?