Page 1 of 1

Renaming Admin

Posted: Fri Apr 29, 2011 3:54 am
by DigitariaGlobal
Now as I decided to titanium secure a site, I am having problems. I remain the admin folders and both references to it in config.php and now I can't access the site via the administration panel. I just get a blank page no errors nothing!

I am using v 1.4.9.4

Any help?

Re: Renaming Admin

Posted: Fri Apr 29, 2011 5:22 am
by Xsecrets
check your server error logs. There are errors, but your php is configured not to show them on screen. Once you find out what the errors are it should be easy to figure out the problem.

Re: Renaming Admin

Posted: Fri Apr 29, 2011 5:31 am
by DigitariaGlobal
There is nothing showing up in my error log. Where is the OC error log located?

Re: Renaming Admin

Posted: Fri Apr 29, 2011 5:34 am
by Xsecrets
the oc error log is in system/log/error.txt
but a more definitive log is usually on your hosting panel.

Re: Renaming Admin

Posted: Fri Apr 29, 2011 5:52 am
by DigitariaGlobal
2011-04-20 14:33:43 - PHP Warning: unlink(/content/Hosting/c/u/<site name>/<root directory>/store_location/system/cache/cache.category.0.1.0.1303164012) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /content/Hosting/c/u/<site name>/<root directory>/<store_location>/system/library/cache.php on line 15

text in red not the actual names, these were removed for security

that is all the error message in the log

I made the changes about 2hrs ago

I even emptied the catch folder, the permission is 755

my hosting panel log was the first one i checked and there were no errors relating to any actions today

Re: Renaming Admin

Posted: Fri Apr 29, 2011 5:56 am
by Xsecrets
that wouldn't cause a blank screen anyways. You need to be looking for a fatal error, which may actually happen before opencart can write to the error log. Have you looked at the error logs on your hosting?

Re: Renaming Admin

Posted: Fri Apr 29, 2011 6:26 am
by DigitariaGlobal
Checked error log on hosting and no issues.

I get a blank page, everything worked fine before I rename admin

Re: Renaming Admin

Posted: Fri Apr 29, 2011 6:39 am
by DigitariaGlobal
What are the permissions for the system folder and sub-folders and the admin and admin sub-folders?

Re: Renaming Admin

Posted: Fri Apr 29, 2011 6:40 am
by Xsecrets
well I guess rename it back. If you can't produce any errors noone can help you.

Re: Renaming Admin

Posted: Fri Apr 29, 2011 7:27 am
by DigitariaGlobal
I changed it back and it works.

There must be other changes that needed to be made apart from the ones in admin/config.php.

Anyone knows where these changes are?

Re: Renaming Admin

Posted: Fri Apr 29, 2011 8:13 am
by only_me
DigitariaGlobal wrote:Now as I decided to titanium secure a site, I am having problems. I remain the admin folders and both references to it in config.php and now I can't access the site via the administration panel. I just get a blank page no errors nothing!

I am using v 1.4.9.4

Any help?
If you really did mean to say both references to it, then I would say that is the cause of your error. I count five references to "admin" in the config.php file.

Being new to opencart and indeed website creation, a lesson I recently learned is that next time you upgrade versions, be aware that you have changed the name of the admin folder. So either rename your website admin folder back to "admin" or rename the admin folder in the upgrade package to your website's admin folder name. It's not so relevant to you right now, as you're on 1.4.9.4 already, but is something that should be borne in mind in future to avoid the schoolboy error I made.

Hope that helps.

Re: Renaming Admin

Posted: Fri Apr 29, 2011 3:55 pm
by DigitariaGlobal
Yes you are right there are 5 references to admin, it was my short sight. I corrected the errors I made, it's now working fine.

I should have been more careful.

What abut the default permissions, anyone has a list?

Thanks a lot guys, all of you, for your help.