Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41
  1. #11
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Admin not accessible

    Quote Originally Posted by Parafanaylya View Post
    Still not resolved.

    Tried to login to my admin panel this morning again to get an error log for posting on this forum.

    So I went and had a look at the login.php file and found this, line 13 highlighted.

    PHP Code:
    define('ADMIN_PASSWORD_EXPIRES_INTERVAL'strtotime('- 90 day')); 
    That has nothing to do with time zones. The only timezone setting that I have changed were in my other thread:
    One may think that there is no timezone relationship, but the system is not able to say what time it is currently to be able to compare the current time to 90 days before or after today... So, it too is a factor of the timezone and is something that should be a known value to support operation.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    Unfortunately this particular file modification which I guess has resulted in this message is a bit of a result of previous work that has been done to specifically support login to the admin for this ZC user at this host.
    The admin panel continued to work fine for a few days....

    Quote Originally Posted by mc12345678 View Post
    Last related action that was posted as necessary was finding another way to set the timezone because the php command putenv has been disabled by the host in the shared environment used at this site. Whether the solution is to add a command to an .htaccess or if it is possible to have/generate a php.ini file or not is to be seen.
    Our host suggested a change to the .htaccess file, but they won't allow changes to the php.ini file

    Quote Originally Posted by mc12345678 View Post
    Oh and the issue may have been posted by a user with a very similarly spelt name because for some reason this user had to create a new account and continue the discussion but appears to be back now in this username.
    Correct - I couldn't access my original user profile after a password change.

    Quote Originally Posted by mc12345678 View Post
    There is still some debate about whether such a warning is the true cause of system non-response, but that issue is the last of things that appeared necessary in order to support continued operation...
    I need to resolve the issue but have no idea what is causing the lack of access.

  3. #13
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Admin not accessible

    So it worked and then it stopped working... what changed?

    If I remember correctly, though I probably didn't, I thought in one of the posts related to this that php related information as gathered from the admin->version area had been provided. That same information if gathered again may show what "new" options have been disabled or how php has been altered. Otherwise, would look again at the htaccess file to validate that it contains the content expected. Not too long ago on a server not so far far away, had a service modify or as they thought of it "update" the htaccess of a site. Made their things work "wonderfully" but completely disabled everything else about the site... fortunately only went unnoticed a couple of hours for a site that mostly provides information rather than paid for services, but still...

    Point being, if identify what changed, can identify what to do next.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #14
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    So it worked and then it stopped working... what changed?
    I wish I knew

    Quote Originally Posted by mc12345678 View Post
    If I remember correctly, though I probably didn't, I thought in one of the posts related to this that php related information as gathered from the admin->version area had been provided. That same information if gathered again may show what "new" options have been disabled or how php has been altered. Otherwise, would look again at the htaccess file to validate that it contains the content expected. Not too long ago on a server not so far far away, had a service modify or as they thought of it "update" the htaccess of a site. Made their things work "wonderfully" but completely disabled everything else about the site... fortunately only went unnoticed a couple of hours for a site that mostly provides information rather than paid for services, but still...

    Point being, if identify what changed, can identify what to do next.
    I cannot remember making any changes myself to files that would kill access to the Admin portal. After the fix, I added and used the Plugin CKEditor....

    The sites, from my limited understanding, appear to work in tandem. Neither site nor admin worked, then both started working when the changes were made to the set-time-zones.php file.

    In /my_admin/.htaccess:

    PHP Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: DrByte  Sat Dec 21 17:00:00 2013 -0500 Modified in v1.5.3 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    DirectoryIndex index.php

    # deny *everything*
    <FilesMatch ".*\..*">
      
    Order Allow,Deny
      Deny from all
    </FilesMatch

  5. #15
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    Point being, if identify what changed, can identify what to do next.
    Is there a file or list of files that I could have a look at?

  6. #16
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Admin not accessible

    PHP Code:
    mod_fcgidstderrPHP Warningstrtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/vhosts/joburlnx.ehost-services221.com/joburgonline.com/my_renamed_admin/login.php on line 13                Apache error 

  7. #17
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Admin not accessible

    Quote Originally Posted by Parafanaylya View Post
    I wish I knew



    I cannot remember making any changes myself to files that would kill access to the Admin portal. After the fix, I added and used the Plugin CKEditor....

    The sites, from my limited understanding, appear to work in tandem. Neither site nor admin worked, then both started working when the changes were made to the set-time-zones.php file.

    In /my_admin/.htaccess:

    PHP Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: DrByte  Sat Dec 21 17:00:00 2013 -0500 Modified in v1.5.3 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    DirectoryIndex index.php

    # deny *everything*
    <FilesMatch ".*\..*">
      
    Order Allow,Deny
      Deny from all
    </FilesMatch
    The htaccess file that would be in question would likely be the one in the root of the store not the one in the admin directory.

    Thing is, when the store started working again successfully, was a complete backup made of the files? If so, how do those compare to the current store files? Is the change that was placed in whatever htaccess file still there or does it need to be applied again? In the future, if something fixes the problem, it helps you (and others) to specifically identify what fixed the issue. That way it could be a sort of backup in public...

    I didn't finish searching for what was needed because of all the reports of the problem being fixed at the time.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #18
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Admin not accessible

    It looks like you might see a solution to that specific issue if in your catalog's .htaccess you added:


    Code:
    php_value date.timezone 'Africa/Johannesburg'
    This would be the file located at: /var/www/vhosts/joburlnx.ehost-services221.com/joburgonline.com/.htaccess
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #19
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Admin not accessible

    Quote Originally Posted by mc12345678 View Post
    It looks like you might see a solution to that specific issue if in your catalog's .htaccess you added:


    Code:
    php_value date.timezone 'Africa/Johannesburg'
    This would be the file located at: /var/www/vhosts/joburlnx.ehost-services221.com/joburgonline.com/.htaccess
    There wasn't a file as above, so I created the file in that location, and added that line, the only line in the file.

    No difference....

  10. #20
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Admin not accessible

    Quote Originally Posted by Parafanaylya View Post
    There wasn't a file as above, so I created the file in that location, and added that line, the only line in the file.

    No difference....
    When say no difference, does that mean that the front/catalog side STILL works, still DOESN'T work? The Admin STILL doesn't work? Does that mean that the same mydebug-adm file is being generated or is there different content?

    If the catalog works but the admin does not, and there are no error messages about the catalog side timezone setting, then would again take a look at includes/extra_configures/set_time_zone.php as well as admin/includes/extra_configures/set_time_zone.php to see if/what difference there is.

    Also, would apply the above suggested htaccess modification to the admin/.htaccess file, try again, and report results.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Admin Not Accessible after SSL & Dedicated IP
    By yeah! in forum General Questions
    Replies: 19
    Last Post: 21 Apr 2011, 11:27 PM
  2. installed demo now old admin not accessible
    By VDecalS in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 25 Nov 2010, 12:54 AM
  3. My admin panel not accessible in 1.3.9g
    By Crunch in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 30 Sep 2010, 10:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR