Forums / Upgrading from 1.3.x to 1.3.9 / failed to open stream -- Can't log into admin on upgraded installation

failed to open stream -- Can't log into admin on upgraded installation

Locked

Started by dbrewster on 14 Dec 2007, 6:23 PM · Views: 1,711

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Dec 2007, 6:23 PM
#1
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

failed to open stream -- Can't log into admin on upgraded installation

Hi.

I did the upgrade from 1.3.7 to 1.3.8a on my sandbox Zen Cart, I merged and overwrote files and ran the zc_install database update script, despite cURL warnings. (see thread in linux server installation category.)

I can't log into admin now, I see this error:

Warning: main(includes/initsystem.php): failed to open stream: No such file or directory in /home/[my directory]/public_html/register/[custom admin folder]/includes/application_top.php on line 126

Fatal error: main(): Failed opening required 'includes/initsystem.php' (include_path='.:/usr/lib/php') in /home/[my directory]/public_html/register/[custom admin folder]/includes/application_top.php on line **126

**I'm using a renamed admin folder as you can see, per security recommendations. Yes, I'm using the right login path.

I've looked at initsystem.php and application_top.php, verified that both files exist in the correct locations and versions. File permissions are 755.

Next thing I'll try: revert to "admin" in the configure.php file and folder name, and see if that makes a difference, but would like any tips about what might be going wrong.

---Diana

14 Dec 2007, 6:40 PM
#2
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: failed to open stream -- Can't log into admin on upgraded installation

OK, changing the admin configuration file and folder back to the default "admin" generated the same error.

I reverted admin/includes/application_top.php to the previous 1.3.7 version, and was able to log in.

soooooo.....

???

Eager to hear ideas about why the 1.3.8 version isn't working for moi.

(and no, I have no customzations on that file!)

---Diana

17 Dec 2007, 2:17 PM
#3
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: failed to open stream -- Can't log into admin on upgraded installation

Dear Dr. Byte or Ajeh or other ZC team member,

My 1.3.7 -> 1.3.8a update on my sandbox went fine except for this file:

admin/includes/application_top.php

I had to revert to the 1.3.7 version of this file in order to log into admin, otherwise I get the error I posted above and can't log into admin.

Before I try to update my main store, do you have any idea what this error means, and why this problem would happen?

I'll be more than happy to grant you access to my sandbox installation, including FTP, if you want to examine it; also I'll be happy to try any tests or modifications you suggest.

thanks,

---Diana

17 Dec 2007, 2:27 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: failed to open stream -- Can't log into admin on upgraded installation

Did you upload the new /admin/includes/initsystem.php file?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Dec 2007, 2:33 PM
#5
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: failed to open stream -- Can't log into admin on upgraded installation

Brilliant!

Exactly the problem; I have a lot of customizations, and sometimes I miss a new file here and there...

that fixed it!!!

:clap:

you're a dear.

---Diana