Zen Cart Logo
Forums / Basic Configuration / Admin page unavailable

Admin page unavailable

Views: 2,291

Results 1 to 20 of 22
2 Apr 2011, 8:29 PM
#1
mrsorjonen avatar

mrsorjonen

New Zenner

Join Date:
Apr 2011
Posts:
1
Plugin Contributions:
0

Admin page unavailable

Hey,

I wonder if someone could help me? I installed program succesfully, but now I have a little problem. Suddenly my admin page is anymore available :no: Browser tells that page is currently unavailable. Chmods are correct 755 and pages are in server, but I can´t go there. What have I done wrong?
There is of course change I copy all important configuration files and install again and after that upload configuration files back to server. But I would be happy if there is something I have missed.

Thanks further for your help :smile:

2 Apr 2011, 8:55 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

Uploading the config files is probably what caused your current problem.

Not sure why you installed again or uploaded the config files but if you delete the current config files and install again, you should get things working.

The learning is in the doing.

Potent Products

4 Apr 2011, 6:25 AM
#3
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

Hello,

My problem is the Admin pages are all mess up not in order design. No button images. This happened after upgrading from v1.3.9g to h. See:

Please help. Thanks!

4 Apr 2011, 7:17 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

Looks / sounds like, some of your 'admin' files didn't upload or got messed up somehow.

Re-upload the 'admin' dir. from the default Zen Cart files which should solve your problem.

The learning is in the doing.

Potent Products

5 Apr 2011, 4:04 AM
#5
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

Website Rob:

Looks / sounds like, some of your 'admin' files didn't upload or got messed up somehow.

Re-upload the 'admin' dir. from the default Zen Cart files which should solve your problem.
I afraid re-upload it will crash my site, that's why I‘m hesitant.

Questions:
Re-load and skip override or override all?
Re-load will not erase my customers account files, right?

Thanks!

5 Apr 2011, 7:30 AM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

There are no overrides within the 'admin' dir. so unless you've done some customizing or are using a module that has changed one of the Admin files, you should be fine. Besides, you have a complete backup of the site... right?

The learning is in the doing.

Potent Products

5 Apr 2011, 5:07 PM
#7
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

Hi Website Rob,

I did setup Paypal account and UPS info in admin. Reload "admin dir" will not overrides them, right?

5 Apr 2011, 9:55 PM
#8
kamullis avatar

kamullis

New Zenner

Join Date:
Dec 2010
Posts:
21
Plugin Contributions:
0

Re: Admin page unavailable

hi. i am having a similar problem. i tried to move my site to my root directory. i followed all the steps and changed my session info as well as changing the config files in admin/includes and includes. i could get to my site fine but clicking on the my account page lead to a blank page, no error message or could not find page message, just a white page. this also happened when i would try to login to my admin page. so i tried to go back to the site in the sub folder and i swear everything was working last night. now all of the sudden when i try to go to my admin page in the sub folder it's not even taking me to the log in page. it's taking me to a blank page.

the only thing that i have changed is that i put a 301 redirect page in the root folder because i didn't feel like messing with something that was working fine.

any suggestions?

5 Apr 2011, 10:35 PM
#9
kamullis avatar

kamullis

New Zenner

Join Date:
Dec 2010
Posts:
21
Plugin Contributions:
0

Re: Admin page unavailable

by the way. are there supposed to be closing php tags on the configure.php files?

6 Apr 2011, 5:18 AM
#10
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

Website Rob:

Looks / sounds like, some of your 'admin' files didn't upload or got messed up somehow.

Re-upload the 'admin' dir. from the default Zen Cart files which should solve your problem.
Hi Websie Rob,

I just did re-upload the admin dir with overwrite new and different
size files. But it does not fix the problem. What should I do?

6 Apr 2011, 6:58 AM
#11
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

kamullis and hara, you should check the 'cache' dir. within Zen Cart to see if any DEBUG files as they will give details on certain types of errors. You should also check the Error log within your Hosting control panel which might also be giving error information.

kamullis, you say you moved your site to the root dir. and you also created a 301 within the root dir., sounds like a conflict there but not sure as I don't know what you are redirecting. As to PHP closing tags, not necessary anymore.

The learning is in the doing.

Potent Products

6 Apr 2011, 8:48 PM
#12
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

[02-Apr-2011 15:46:25] PHP Warning: require(includes/languages/english/html_includes/define_page_2.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxxx/xxxxx.com/includes/templates/template_default/templates/tpl_page_2_default.php on line 21

[02-Apr-2011 15:46:25] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/english/html_includes/define_page_2.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/xxxxx/xxxxx/includes/templates/template_default/templates/tpl_page_2_default.php on line 21

Hi webiste rob,

I got error logs in zen cart see above (for security I hide some code by xxx). Do you think they are related? How to fix it? Thanks!

6 Apr 2011, 9:02 PM
#13
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

In addition, I use a capital for the first letter of admin dir name (replace admin), Any problem?

6 Apr 2011, 10:30 PM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

hara:

[02-Apr-2011 15:46:25] PHP Warning: require(includes/languages/english/html_includes/define_page_2.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory on line 21
Make sure you have both files and in the locations they should be.

The learning is in the doing.

Potent Products

7 Apr 2011, 2:00 AM
#16
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

Hi Website rob,

The file on line 21 read:
require($define_page);
However, the page is not belong to admin site and opening normal.

I need to find problem files within admin dir. Am I right?

7 Apr 2011, 2:28 AM
#17
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin page unavailable

The error msg. relates to file not found that is not in your Admin dir. I replied to that as I know what the problem is and why you are getting that error. Why your Admin does not work, I don't know. It's starting to look like you need to hire someone to fix the problem for you or delete everything and start over -- save your database though, if you already have orders.

The learning is in the doing.

Potent Products

7 Apr 2011, 2:29 AM
#18
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

usr50:

read this post to the end. http://www.zen-cart.com/forum/showthread.php?t=176439&highlight=crewgirl

the fix in the post is to add this directive on its own line to the '.htaccess' file in the admin folder

DirectoryIndex index.php

Hi usr50,

I added the line below and tested it. The problem still there and remain the same.
DirectoryIndex index.php index.html

7 Apr 2011, 5:39 AM
#19
drbyte avatar

drbyte

Sensei

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

Re: Admin page unavailable

hara:

[02-Apr-2011 15:46:25] PHP Warning: require(includes/languages/english/html_includes/define_page_2.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in ...
Exactly as the error message says: your define_page_2.php file is missing.
Ref: https://www.zen-cart.com/tutorials/index.php?article=87

.
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.

7 Apr 2011, 6:00 AM
#20
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: Admin page unavailable

DrByte:

Exactly as the error message says: your define_page_2.php file is missing.
Ref: https://www.zen-cart.com/tutorials/index.php?article=87

Hi DrByte,

This file is not belong to admin site. Is it still reflect to admin pages?
My problem is admin pages are all mess up without css layout.

I checked the file define_page_2.php is there.