line 27 of /admin/modules/settings.php reads if ($_POST['save'] != $CPG_SESS['admin']['page']) { cpg_error(_ERROR_BAD_LINK, _SEC_ERROR); }
change to # if ($_POST['save'] != $CPG_SESS['admin']['page']) { cpg_error(_ERROR_BAD_LINK, _SEC_ERROR); }
.m@.
"Reality is merely an illusion, albeit a very persistent one. " - Albert Einstein
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
{GoDaddy Hosted} Linux/ 1.3.33 / 5.0.45 / 4.3.11 / 9.1.2.1
ladybughOffline
Joined: Dec 31, 2005
Posts: 25
Location: Canada
Is session_save_path in /includes/config.php set to a valid directory that you can write to (it is at the bottom of the file)? If it is not it won't be able to save the session data file and you will get the bad link error constantly.
Having just moved my doc root to a new location I have found this out the hard way.
Please enter your server specs in your user profile! 😢
mdthomannOffline
Joined: Feb 16, 2007
Posts: 39
Location: Chicago
It this case it uses the directory set in php.ini (session.save_path which defaults to /tmp or, in later versions of php the default tmp directory (/tmp or c:\WINDOWS\Temp for example), which you may or may not be able to write into. Since you know that you can write to your cache directory, uncomment the session_save_path and set it to your DF cache directory (just for testing). Delete your cookies. Clear the cache directory. Sign in again. See if it is working. You will get a file called sess_... in the cache folder if it is.
If the file is created but you still get the same problem then this isn't the issue and you can uncomment it again. If it is fixed then you need to look into why you can't write to the directory in php.ini because you should be able to write to it or you can set up a new directory or whatever (but don't leave this set to your cache directory in a production system since it is a potential security risk).
Please enter your server specs in your user profile! 😢
mdthomannOffline
Joined: Feb 16, 2007
Posts: 39
Location: Chicago