Injader

How to fix path errors

Symptoms

You may have a path error if one of the following problems occurs:

  1. All of your links have /dev/injader at the start.
  2. All of your links refer to a path that you used for a previous installation.

Possible causes

Typically, this problem is caused by uploading the contents of the Injader ZIP file without running the upgrade script. You should always run the upgrade script after uploading the files.

However, in some cases this is not possible as you're still running the same version. Specific examples that may cause this problem:

  1. You've been running a beta version of Injader and you want to upgrade to the latest beta - or the final version.
  2. You didn't upload every file in the ZIP.
  3. You changed a core file that caused something to go horribly wrong.
  4. You've moved your site and the path needs to be updated.
  5. You've uploaded a duplicate copy of SystemDirs.php to the root directory of your site.

How to fix the error

First, make sure you've uploaded all of the files in the Injader ZIP file to your site.

Now go to yoursite.com/installer and start the full installation. Do not proceed beyond the first step or you will wipe out your site!

If Step 1 is shown and no errors occur, the path should be updated automatically. Try navigating to your home page and check if the problem is resolved.

If the problem still occurs, you may need to change the permissions on sys/SystemDirs.php.

Manually adjusting the path

Edit sys/SystemDirs.php and look for the following line:

define('URL_ROOT', "/dev/injader/");

The above example shows what URL_ROOT is set to when you first install Injader.

To run Injader from the top level of your site, change the above line to this:

define('URL_ROOT', "/");

To run from a subfolder, try this:

define('URL_ROOT', "/injader/");

Change “injader” to the name of the subfolder.

Save the changes and try loading your site again.

Additional steps

If you've moved your site, you may need to edit your .htaccess file to include (or exclude) a subfolder name.

Also, check the root directory of your site for a duplicate copy of SystemDirs.php. If you've uploaded this in error, it will cause problems. Delete this file and ensure you only have one copy stored under sys/SystemDirs.php.

 
how_to_fix_path_errors.txt · Last modified: 2009/06/17 17:09 by admin