Hi,
I think I know the problem... you or someone else edited the code on your site, and changed the call to the function "send_headers_page_chaged" to "send_headers_page_changed" on some/all of your pages.
I checked the original CLEAN v0.04 code - and the function is spelled "send_headers_page_chaged".
While I know that aeWebWorks spelled "changed" wrong (they spelled it "chaged"), you can not correct a spelling mistake like this in the code - without also correcting the spelling mistake of the function also, and all the places it is called throughout the site.
So, there are three ways to fix this:
1) Change the places back that you edited to "send_headers_page_chaged" - and the function will then be found again (where you changed it, not sure - do you remember?)
or
2) Go through your whole site - and change all of the "send_headers_page_chaged" entries to "send_headers_page_changed", and also change the name of the function in "design_inc.php".
or
3) Copy the existing function "send_headers_page_chaged" in "design_inc.php" to a new one in "design_inc.php" and call the new one "send_headers_page_changed".
The 3rd way will fix your site quickly with no searching.
Rob
example "new" function for method #3 - add to the bottom of design_inc.php, above the last ?>
Code:
/**
* Use this function in pages if you want to not cache it.
* Copy / duplicate of send_headers_page_chaged function
* to fix spelling mistake in function name
**/
function send_headers_page_changed ()
{
$now = gmdate('D, d M Y H:i:s') . ' GMT';
header("Expires: $now");
header("Last-Modified: $now");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
Bookmarks