Jump to content

Error adding news and error adding pages


pilotconnor

Recommended Posts

  • Administrators

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.

Link to comment
Share on other sites

  • Administrators

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?

Link to comment
Share on other sites

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...