Forums / Installing on a Linux/Unix Server / Shop details will not save - forces login page. Admin directory missing

Shop details will not save - forces login page. Admin directory missing

Views: 7,843

Results 1 to 11 of 11
20 Apr 2023, 12:13 PM
#1
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Shop details will not save - forces login page. Admin directory missing

https://www.ausi.com.au/zen157d
v157d
PHP 7.1

Fresh install after a major database corruption. Completely new install. Using 1.5.7 because other software requires PHP to be 7.1

On install, all works until I go into administer the site. Then Store details will not save. Any action including saving store details results in a return to the admin login page.

In my attempts to debug, I notice that the Admin directory is missing in the install directory. (well I see it in the tree but I cannot open it.

Thanks

20 Apr 2023, 12:48 PM
#2
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Re: Shop details will not save - forces login page. Admin directory missing

Sorry, found the renamed admin directory so that is OK

20 Apr 2023, 1:59 PM
#3
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Re: Shop details will not save - forces login page. Admin directory missing

To be clear, - it is still not working!

20 Apr 2023, 7:12 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Shop details will not save - forces login page. Admin directory missing

rkenley:

To be clear, - it is still not working!
To be clearer, what is it? Are there any myDEBUG-adm-*.log files in the site's /logs directory?

20 Apr 2023, 8:12 PM
#5
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Re: Shop details will not save - forces login page. Admin directory missing

Hi, thank you for responding.

There are no log files in the site log.

And the problem is that everything seems to be normal, yet I can't administer the site. I can login as admin and get to the My Store configuration page. I am familiar with this page. But selecting any item on this form, or trying to save store details on the initiation form, all fail. As soon as I save or select a menu item, the system immediately jumps back to the admin login form. I can't get beyond this.

This is my second go at doing this - I tried it with 1.5.67a 2 years ago and I now remember I got the same result and could not find a solution.

I have checked all the permissions I am supposed to set and they are correct. I tried a reinstall but this made no difference.

If its relevant, I unpacked 1.5.7 locally, uploaded it to the site and ran the installer via the web. I have done this several times in earlier years with earlier versions and never had this problem.

I am thinking I must have a setting incorrect????

##############################

OK, I have found my post from 2 years ago and at that time I found that 1.5.7 does not like PHP 7.1 - it works if I change to 7.3... however I NEED to stay with 7.1. Am I going to have to abandon ZenCart? Or maybe change to 7.4 to edit the site and then change back? I will try that now. But it seems clumsy.

20 Apr 2023, 8:20 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Shop details will not save - forces login page. Admin directory missing

Why don't you just put your cart on another hoster so you can run the old software with 7.1 and your cart with 7.4.
Or better yet, get the old software updated.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

20 Apr 2023, 8:34 PM
#7
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Re: Shop details will not save - forces login page. Admin directory missing

That's a really good question!
I just ran tests and found indeed it needs 7.4 to work, but I can edit the config under 7.4 and then change it back to 7.1 and the store will work.
Unfortunately the other software seems to have stopped updating and most of my administrative systems were built around it, so I can't go to 7.4 until I can solve that.
But why does Zen Cart documentation say that 1.5.7 will run on PHP versions from 5.6:
***PHP Version
The following list shows the PHP versions compatible with each version of Zen Cart.

Zen Cart v1.5.8 is designed for PHP 7.3 through PHP 8.2
Zen Cart v1.5.7 is designed for PHP 5.6 through PHP 8.0***
20 Apr 2023, 8:47 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,867
Plugin Contributions:
19

Re: Shop details will not save - forces login page. Admin directory missing

You'll note that those specs are for core files.

ANYTHING you add may or may not be compatible with 7.4

That's just one of the reasons we ask for information both above the post and in text that you deleted without answering in your first post.

You can't get any accurate answers without the forum folks knowing the facts.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Apr 2023, 12:14 AM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Shop details will not save - forces login page. Admin directory missing

You'll note that those specs are for core files.

This is a critical point that cannot be overemphasized. The minute you mod you cart, all statements of interoperability go out the window.

If you're running a serious business, you should hire someone who can keep your entire cart, even the customizations, up to date.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

21 Apr 2023, 6:11 AM
#10
rkenley avatar

rkenley

New Zenner

Join Date:
Oct 2020
Location:
Melbourne
Posts:
10
Plugin Contributions:
0

Re: Shop details will not save - forces login page. Admin directory missing

OK guys, settle down.

I DID state very clearly in my introduction that this is a clean install. There are no mods to Zen Cart. It is out of the box.
The fact of the matter is that Zen Cart 1.5.7d is stated to run on PHP from version 5.6 but this is not true. It won't run on versions earlier than 7.4 as far as I can tell.

But if there is something I have done wrong with my basic clean install that means it won't run on PHP 7.1 I would love to know.

22 Apr 2023, 11:40 AM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Shop details will not save - forces login page. Admin directory missing

rkenley:

OK guys, settle down.

I DID state very clearly in my introduction that this is a clean install. There are no mods to Zen Cart. It is out of the box.
The fact of the matter is that Zen Cart 1.5.7d is stated to run on PHP from version 5.6 but this is not true. It won't run on versions earlier than 7.4 as far as I can tell.

But if there is something I have done wrong with my basic clean install that means it won't run on PHP 7.1 I would love to know.
I've just loaded zc157d running PHP 5.6.40 with no issues, so there might be something 'funky' either with either your Zen Cart setup or your webhost's environment.

You can create a teeny file named (something_obtuse.php) that contains

<?php
phpinfo();

Upload that to the root of your site and run it to see the base PHP setup for your site. At the very top, the function will identify the full PHP version/subversion as well as some of the basic PHP configuration information.

If you would, capture that information and post back. It would also help to see the contents of the admin version of the configure.php file (no need to include the database connection information).