Jump to content

Recommended Posts

  • Administrators
Posted

Not sure about the news error without more information but the page error is most likely a folder permissions issue on the pages foldwer. Check the permissions and make sure they are at least set to 0755

  • Administrators
Posted

I am not aware of an option that resets a page template cache. There is a function in the admin panel to reset the general cache of the site but I do not beleieve it is going to do anything with the saving pages issue.

Admin > Site & Settings > Maintenance Options > Clear Cache

If your host was able to fix it before I would contact them again.

  • Administrators
Posted

You are going to have to catch the error from the database. If you enable de-bugging and do not see it add this to your SiteData.class file in the addPage function temporarily, then try to add a page and see what it shows.

$sql = "INSERT INTO " . TABLE_PREFIX .
	 "pages (pagename, filename, postedby, postdate, public, enabled)
 VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)";
 $ret = DB::query($sql);
 if (DB::errno() != 0) return false;

make it look like this temporarily

$sql = "INSERT INTO " . TABLE_PREFIX .
	 "pages (pagename, filename, postedby, postdate, public, enabled)
 VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)";
 $ret = DB::query($sql);
 var_dump(DB::error());exit;
 if (DB::errno() != 0) return false;

I am guessing there is an apostrophe in the user name or the text somewhere that you don't realize is there.

What is the link to your site?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...