Forums / Installing on a Windows Server / T-Static - Missing Admin Menu

T-Static - Missing Admin Menu

Views: 11,950

Results 1 to 16 of 16
29 Sep 2015, 5:08 AM
#2
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

There were no log entries when the the admin menu items did not appear...

17 Years and still just a "Follower." :P

29 Sep 2015, 6:04 AM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: T-Static - Missing Admin Menu

Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels.

Dunno if this will fix the admin issues or not, but its a good place to start

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Sep 2015, 2:41 PM
#4
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

Great Suggestion Rod.

Can you tell me how to get to "Admin->Tools->Server Information" when there are no menu items to select?

##################################################___
Tried some troubleshooting...

Reloaded the Admin Folder as suggested in another thread, and went back to blank admin.

Made change as stated in thread from first post and went back to admin with missing menu items.

Tried to run ZC_INSTALL thinking that it would do a database upgrade and got redirected to home page.

17 Years and still just a "Follower." :P

29 Sep 2015, 8:23 PM
#5
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: T-Static - Missing Admin Menu

Long term you should really have the hosting provider configure the server to run a newer version of PHP (5.2 and older are ancient in computer years). Once the account has been upgraded you can re-install Zen Cart 1.5.4.

masterrusty:

... Tried to run ZC_INSTALL thinking that it would do a database upgrade and got redirected to home page.
In order to run the Zen Cart installer, you may need to do one of the following (after uploading a clean copy of zc_install from the distribution zip matching the installed version of Zen Cart):

  • Disable your alternative URLs plugin.
  • Add an rule to the .htaccess to not rewrite "zc_install".
  • Manually type in the full path (/zc_install/index.php).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

29 Sep 2015, 9:18 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: T-Static - Missing Admin Menu

So most likely cause of the absence of options within the admin screen (after the database upgrade is performed via zc_install process and only doing a database upgrade which has still not been complete as message still appears at top of webste) is one or more of the following database table data issues:

  • the admin profile(s) do not have a valid primary key number (non-zero)
  • the admin user(s) do not have a valid primary key number (non-zero)
  • the admin profile number assigned to the admin user is not valid/does not exist in the admn profile table.

These items would be best viewed from phpmyadmin or similar database viewing software and the user(s) may need to be reconstructed temporarily through: http://www.zen-cart.com/content.php?44

After gaining access, new users may need to be added and the old deleted to provide access by those users. I have yet to figure out why the above becomes necessary, but I have had to do those actions on more than one upgrade from those older versions and not entirely sure how they were able to login with that problem existing, but they could... Different sites, different owners/operators, different version histories, etc...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

29 Sep 2015, 9:30 PM
#7
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: T-Static - Missing Admin Menu

mc12345678:

So most likely cause of the absence of options within the admin screen (after the database upgrade is performed via zc_install process and only doing a database upgrade which has still not been complete as message still appears at top of webste) is one or more of the following database table data issues:

  • the admin profile(s) do not have a valid primary key number (non-zero)
  • the admin user(s) do not have a valid primary key number (non-zero)
  • the admin profile number assigned to the admin user is not valid/does not exist in the admn profile table. ...
    Thank You for mentioning (I tend to forget about this one).

If after the OP performs the database upgrade (still shows not completed on the website) the issue persists, this would be the next item on the checklist!

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

29 Sep 2015, 9:36 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: T-Static - Missing Admin Menu

lhungil:

Thank You for mentioning (I tend to forget about this one).

If after the OP performs the database upgrade (still shows not completed on the website) the issue persists, this would be the next item on the checklist!

Well, you know how it is with you and I, one of us posts something pertinent about the same time. :) glad you beat me to what you posted as it took long enough to thumb out what was above that I didn't want to include more than necessary. :P

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

30 Sep 2015, 3:08 PM
#9
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

lhungil:

Long term you should really have the hosting provider configure the server to run a newer version of PHP (5.2 and older are ancient in computer years). Once the account has been upgraded you can re-install Zen Cart 1.5.4.

In order to run the Zen Cart installer, you may need to do one of the following (after uploading a clean copy of zc_install from the distribution zip matching the installed version of Zen Cart):

  • Disable your alternative URLs plugin.
  • Add an rule to the .htaccess to not rewrite "zc_install".
  • Manually type in the full path (/zc_install/index.php).
  • Alternative URLs plugin not installed on this site this is from the htaccess file related to site in root directory (and others)
  • Add an rule to the .htaccess to not rewrite "zc_install". NOT NECESSARY
  • Manually type in the full path (/zc_install/index.php). Been doing this

    Finally Plowed through the database upgrade issue by using the file hack described here:
    https://www.zen-cart.com/showthread.php?216711-Can-t-upgrade-database-doing-upgrade-from-1-5-1-to-1-5-4

    After I got the database upgraded I tried logging in to the admin area using two different user names. Got no love.

Heading off to attempt admin primary key corrections mentioned by mc12345678

17 Years and still just a "Follower." :P

30 Sep 2015, 3:31 PM
#10
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

mc12345678:

So most likely cause of the absence of options within the admin screen (after the database upgrade is performed via zc_install process and only doing a database upgrade which has still not been complete as message still appears at top of webste) is one or more of the following database table data issues:

  • the admin profile(s) do not have a valid primary key number (non-zero)
  • the admin user(s) do not have a valid primary key number (non-zero)
  • the admin profile number assigned to the admin user is not valid/does not exist in the admn profile table.

These items would be best viewed from phpmyadmin or similar database viewing software and the user(s) may need to be reconstructed temporarily through: http://www.zen-cart.com/content.php?44

After gaining access, new users may need to be added and the old deleted to provide access by those users. I have yet to figure out why the above becomes necessary, but I have had to do those actions on more than one upgrade from those older versions and not entirely sure how they were able to login with that problem existing, but they could... Different sites, different owners/operators, different version histories, etc...

First I tried getting a password reset and log in. The Admin Menu items still did not show.

Then I tried resetting the admin user by using the instructions from http://www.zen-cart.com/content.php?44.

Still no Admin Menu items.

m.fantasycostume.com

CUURENT STATUS:

  1. Fresh 1.5.4 install with NO PLUGINS
  2. Database upgraded from 1.5.1 to 1.5.4
  3. Login with old admin user names gets in but gives no menu items
  4. Login with new admin user generated by instructions on http://www.zen-cart.com/content.php?44 gives no admin menu items.

Also, I have been disabling the .htaccess file for testing to verify that it is not causing this issue.

:wacko:

17 Years and still just a "Follower." :P

30 Sep 2015, 4:03 PM
#11
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

Ok. All fixed.

It was the :censored: php version.

wonder if that was it all along. :censored::censored::censored::censored:

Recommend that anyone haviong this issue start there.

THANK YOU **lhungil** and **mc12345678** for your time, support and patience.

Soon I will have 8 years Administrating Zen sites and I am feeling less than Newbie. :blush:

17 Years and still just a "Follower." :P

30 Sep 2015, 6:01 PM
#12
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: T-Static - Missing Admin Menu

Glad you were able to solve the issue (by upgrading the PHP version) and Thank You for reporting back the solution.

Out of curiosity, were only the menu items missing (or was the entire rest of the admin page missing)?

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

30 Sep 2015, 10:38 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: T-Static - Missing Admin Menu

masterrusty:

It was the :censored: php version.

wonder if that was it all along.
Yes it was.
You might want to apply the fixes for these other known problems too: https://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4&p=1268233#post1268233

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

1 Oct 2015, 2:43 AM
#14
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

lhungil:

Glad you were able to solve the issue (by upgrading the PHP version) and Thank You for reporting back the solution.

Out of curiosity, were only the menu items missing (or was the entire rest of the admin page missing)?

The page was appearing, but there were no menu items.

17 Years and still just a "Follower." :P

11 Sep 2016, 11:01 PM
#15
mumzie avatar

mumzie

Inactive

Join Date:
Feb 2007
Posts:
211
Plugin Contributions:
0

Re: T-Static - Missing Admin Menu

I am having a similar problem - but receiving an HTTP 500 error. No admin page at all.
I just moved my site to a new host.
Due to a catastrophic failure at my hosting company, I'm having to go with backups that are about a month old.
Running 1.5.4.
Installed store and DB fine - store seems just fine. admin page gives HTTP 500 error and I get this message in the log file:

[11-Sep-2016 17:20:24] PHP Parse error: syntax error, unexpected T_STATIC in /home/myusername/public_html/myadmindirectory/includes/classes/class.admin.zcObserverLogEventListener.php on line 118

New Hosting company PHP config page image here - www.shirts4bowling.com/temp/untitled-1.jpg

Will changing this to 5.4 likely solve my problem?