installation of zen-cart 1.5: renaming admin folder and redirect error - zen-cart

I installing Zen Cart v1.5, and am at the last steps of the process where I'm required to rename the admin folder. I renamed the folder, and tried to access the admin section by manually typing in the address with the renamed folder. However, it keeps trying to redirect back to the original admin url, giving me the following error:
The requested URL /admin/alert_page.php was not found on this server.
(alert.php is just the page that warns me I need to rename the admin folder -- it's trying to redirect back to this page, even though I renamed the folder.)
This seems to indicate some error with a config file, though the instructions for installation explicitly said that with the current version, it is not necessary to change the config files. (Though, just for good measure I examined the includes/configuration.php file to see if there was an admin folder value I could set, but didn't see any).
I also reloaded the browser cache, to no avail.

Based on where your root zen-cart is installed, you'll want to edit your configure.php file which holds the path to tell Zen cart where the 'ADMIN' directory is located.
For example, I renamed my admin folder to 'control', so I would look for the configure.php file at:
/home/user/public_html/control/includes/configure.php
Look for the defines:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
You'll want to change this to reflect the new folder name you renamed your ADMIN folder to:
define('DIR_WS_ADMIN', '/control/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/control/');
define('DIR_WS_HTTPS_CATALOG', '/');
Hope this helps.

Same question and solution for it!
https://www.zen-cart.com/showthread.php?203681-it-doesn-t-work-after-I-renamed-admin-folder-name

Related

Thunderbird 68 won't import old account from ~/.thunderbird folder

I reinstalled my system from ubuntu 20.04 do manjaro.
I saved ~/.thunderbird folder from the old system to an external drive. After, I copied the folder back to home and started Thunderbird it does not seem to see the profile. Although it can read some of the data, like the Address Book but no account settings, no folders, nothing else.
I found the help page
https://support.mozilla.org/en-US/kb/moving-thunderbird-data-to-a-new-computer
and tried to do it but it doesn't help. Thunderbird found my old profile and it is visible in about:profiles and set as the default profile, so everything looks like thunderbird has read the profile settings but does not understand them
If that fails, in Thunderbird
Edit->Account Settings->Server Settings.
At the bottom of the "Server Settings" tab should be a "Local directory" entry.
Make sure the Local directory MyProfile/Mail/mail.comcast.net (or whatever your profile's appropriate Mail mail-server subfolder is named) matches the full path name of your Thunderbird profile as installed on your new computer. You might have changed it.
This seems to be a known issue, although I have not seen it myself. A colleague has been affected, though.
In brief: what happens if you launch Thunderbird with the -p option? It should list available profiles and let you choose one.
Longer potentially-helpful page:
https://thunderbirdtweaks.blogspot.com/2019/09/i-lost-my-profilemail-on-update-to.html

Open folder in explorer with vscode has application not found error after changing user folder name

My old user folder name has a problem with other program so I change it by following answer in superuser (Simon's answer using registry)
So I tried to reinstall VS Code but it say cannot create directory that has same name as my old user folder "C:\Users\(old name here)"

ownCloud directory renamed / No such file or directory

I installed ownCloud on my webspace (I don't own a server), accessing it with a specific subdomain (i.e. http://sub.domain.com). I now had to rename the originally directory, which I did, and pointed the subdomain to the new directory. Sadly, ownCloud isn't working anymore. So I took a look at the log file:
"Unable to create file (...) No such file or directory"
So I guess ownCloud tries using the old path. Where can I change this setting?
Just solved the problem - had to change the
datadirectory
inside the ownCloudPath/config/config.php

In Magento after installing extension Admin panel in unable to load

As I have assigned to work on magento, according to our requirement i tried to install Arabic extension for magento. The extension got successfully installed. Later on refreshing the admin panel, it shows the URL not found. The Stores FrontEnd CMS home page is loading, But when Iclick on any products, it shows again URL not found..
How can i solve this...
When diagnosing things like this, try the following..
Delete (or move to another folder) files in /var/www/var/cache
Delete (or move to another folder) files in /tmp
From a shell, run
/var/www/shell$ php indexer.php --reindexall
You've just manually cleared your caches and re indexed your data.
See if your system comes back to life.
For me I was redirected to wrong URL from MagentoConnect after installation of extension.
My admin URL: <-hostname->/index.php/admin
Redirected To: <-hostname->/admin
I had same issue when I added extension manually. I could find the issue when checked via shell command and it returned missing table error. This is issue happened when I installed module manually.

How to change credentials for Hg repository in Eclipse?

This is exactly the same case as this one, but with Hg instead of SVN. I have MercurialEclipse installed, and I have changed the password of my remote repo. Now when I synch it fails.
I have not found any conf file in "C:\Documents and Settings\%USER%\Application Data..." about Hg.
I have deleted the .keyring eclipse file and restarted but still fails.
Eclipse 3.6.1 with MercurialEclipse1.6, on windows Vista
In reply to pyfunc (thanks):
I found an entry like this in .hg\hgrc:
[paths]
default = https://user:oldpassword#bitbucket.org/myprojectpath
so I changed to the new password and restarted eclipse, but still I get 'authorization failed'...
I finally found out a way to achieve this. If I select "Synchronize With" I get a dialog and I am able to insert the good values, so now I could synch!
This does not explain why changing values in .hgrc didn't work, but at least is solved now, although it would be nice to find out about the details...
Typically that is stored in .hgrc file. That is the user configuration file stores in the HOME directory. You should be able to change the password there.
As per the man page of Mercurial, there are some suggestions about the location of config file on windows.
1. <install-dir>\Mercurial.ini
2. HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial
3. C:\Mercurial\Mercurial.ini
4. %HOME%\Mercurial.ini or
5. %HOME%\.hgrc or
6. %USERPROFILE%\Mercurial.ini or
7. %USERPROFILE%\.hgrc
it could also lie in /.hg/hgrc
Finally found the config file after some digging... it's in ${workspace_location}/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.vectrace.MercurialEclipse
If you close Eclipse, open this file, and delete just the lines at the bottom starting with repo_, the settings you have saved for that repository (including credentials) should be cleared the next time you open Eclipse. You'll probably want to make a backup of the file just in case.
Since these credentials override whatever you have in your hgrc, deleting these should allow the repositories to authenticate with your global settings. You won't necessarily see the credentials in the username/password fields in Eclipse, but if you click Next/Finish anyway, it should work fine.