[SOVLED] CMS Module error editing pages

Discuss everything related to ApPHP Durecty CMF. All versions. Any questions related to the Directy CMF developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

InsiteFX
Expert
Expert
Posts: 56
Joined: Jun 1st, '09, 07:19
Location: Bristol, CT. USA

[SOVLED] CMS Module error editing pages

Postby InsiteFX » Sep 8th, '14, 14:31

Hi,

I have the CMS module installed in Directy and working, Newest versions Purchased and downloaded today.

This is what's happening I created 2 new pages.

1) About us
2) Contact

The pages created fine with the green page created.

But if I go back to edit either one of the pages, it is giving me an error on top
telling me to re-enter the page! ERROR: An error occurred while updating the page! Please re-enter.

I deleted both pages and started over and it still doe's the same thing.

UPDATE:
It looks like the editor is only allowing you to enter the page content once after that it saves nothing and will not do an update!

Also if I set the session to true to use custom and go to the Admin Dashboard I get a loop of redirect in Chrome browser!
If I set it back to false then it works.

[SOLVED] By Tech Support Ticket, you need to contact them to get a new db directory.
Last edited by InsiteFX on Sep 9th, '14, 19:29, edited 2 times in total.
Photoshop Designer - Custom Graphics, Icons and 300 Dpi Custom ebook covers, Software boxes, CD covers, DVD covers and Screens etc.

administrator
Site Admin
Site Admin
Posts: 6153
Joined: Jan 7th, '09, 23:18
Contact:

Re: CMS Module error editing pages

Postby administrator » Sep 9th, '14, 05:20

Please contact our support center and provide access to your site, so they could test this issue.

InsiteFX
Expert
Expert
Posts: 56
Joined: Jun 1st, '09, 07:19
Location: Bristol, CT. USA

Re: CMS Module error editing pages

Postby InsiteFX » Sep 9th, '14, 07:17

I did also send an email to support, this is running on my local system here.

I do have Team Viewer installed.

Here is what I tracked down!

CMS Model Page.php
Method: protected function _afterSave($id = 0){}

$this->_tableTranslation, $id and $lang
Table Translation: cms_page_translations
ID: 2
Language: en

$updateFields - Array
array (size=5)
'tag_title' => string 'Directy CMF' (length=11)
'tag_keywords' => string 'php cmf, php framework, php content management framework, php cms' (length=65)
'tag_description' => string 'Directy CMF' (length=11)
'page_header' => string 'About us' (length=8)
'page_text' => string '<p>This is our about page!</p>
<p>TEST!</p>
<p> </p>' (length=55)

TEST! is what I added to do the edit/update.

// ERROR Here!
if(!$this->_db->update($this->_tableTranslation, $updateFields, 'page_id = :page_id AND language_code = :language_code', array(':page_id'=>$id, ':language_code'=>$lang))){
$this->_isError = true;
}
Photoshop Designer - Custom Graphics, Icons and 300 Dpi Custom ebook covers, Software boxes, CD covers, DVD covers and Screens etc.


Return to “ApPHP Directy CMF {developers/users}”