Page 1 of 3

Problem with page_params.php ?

Posted: Tue Dec 21, 2010 4:57 pm
by manu
Hi there

CMSimple_XH 1.1.2 Build: 2010031002
Plugins:hi_pd_scripting, formmail, encmail,meumanager, newsletter

After an incident on a quite big page, all plugin params (and probabely all othe page data) were messed up i.e. shifted - the previous page got the scripting from the next page. Because the site is live I had to correct them immediately. It seems to be ok, but when I look into page_params.php, the field['url'] seems to be wrong. It definitely doesn't belong to the same page as the field 'hi_pd_scripting_code1'. This looks weird!

Code: Select all

$page_data[39]['url'] = 'Webform_Mailberatung';
$page_data[39]['last_edit'] = '1285254039';
$page_data[39]['description'] = '';
$page_data[39]['keywords'] = '';
$page_data[39]['title'] = '';
$page_data[39]['robots'] = '';
$page_data[39]['heading'] = '';
$page_data[39]['show_heading'] = '1';
$page_data[39]['template'] = '0';
$page_data[39]['published'] = '1';
$page_data[39]['show_last_edit'] = '0';
$page_data[39]['linked_to_menu'] = '0';
$page_data[39]['header_location'] = '';
$page_data[39]['use_header_location'] = '0';
$page_data[39]['hi_pd_scripting_active1'] = '1';
$page_data[39]['hi_pd_scripting_code1'] = 'formmail($formStructTageskursLLL);';
$page_data[39]['hi_pd_scripting_placeholder1'] = '';
Do we still have a problem with adding/deleting pages?
regards
manu

Re: Problem with page_params.php ?

Posted: Tue Dec 21, 2010 5:38 pm
by Gert
Hi Manu,

yes, there was a bug in 1.1.2:

http://www.cmsimple-xh.de/?History_und_ ... e_XH_1.1.3

An update 1.1.2 => 1.1.3 is strongly recommended.

There is a bugfix update available on sourceforge.net, no problem to update:

http://sourceforge.net/projects/cmsimpl ... .1/v1.1.3/

Re: Problem with page_params.php ?

Posted: Tue Dec 21, 2010 10:10 pm
by manu
Thanks Gert
I did immediately update to v1.1.3.
It looks ok in the plugins tab in edit mode.
But still, after that crash, the index of page_data[]['url'] is mixed up somehow, means it does not fit to the appropriate page. I'm still confused. Is everything fixed and is this regardless or what do you say?
Redards
manu

Re: Problem with page_params.php ?

Posted: Wed Dec 22, 2010 8:42 am
by Gert
Hi Manu,

Martin is the programmer of page_params and meta_tags. But he is private at the moment, wait up to next year.

If it works it is ok.

If you want to have it correct, I fear you have to correct it manually in the pagedata.php.

Another way is to activate a backup (I recommend to set it to "20" in the CMSimple settings) from before the incident and make the latest pages new. Before that make a backup of your current content.htm, so you can copy the new pages.

Re: Problem with page_params.php ?

Posted: Wed Dec 22, 2010 10:41 am
by manu
Thanks Gert,
As I said, it seems to work. It just looks like $page_data[]['url'] has the value of another page.
I suppose this table entry ('url') is for informal reason.
It would be great if Martin could confirm this when he's back.
regards
manu

Re: Problem with page_params.php ?

Posted: Wed Dec 22, 2010 11:20 am
by Gert
Hi Manu,

I have made some quick tests:

If all is working but only ['url'] is wrong (in pagedata.php), no reason to change anything (if the other pagedata are correct assigned).

If you call any page in edit mode and save it (maybe without changes), also ['url'] is correct again (in pagedata.php for that page). You can call every page in edit mode and save it (without changing), then your pagedata.php is correct again, but it's no necessary for correct working of pagedata. The assignement is working by order of pages (in content.htm) and order of datasets (in pagedata.php).

Re: Problem with page_params.php ?

Posted: Wed Dec 22, 2010 12:35 pm
by manu
This is correct!
With the save button for saving content.

thx a lot
manu

Re: Problem with page_params.php ?

Posted: Thu Dec 30, 2010 10:57 am
by Martin
Hi manu,
manu wrote:I suppose this table entry ('url') is for informal reason.
This field is not used to synchronize pages and data - so it does not hurt, if it is wrong. So don't worry about it.

Moving pages to another location is usually done with cut and paste: Deleting the page and inserting it again somwewhere else. The "url"-entry is just used for this operation: As soon as you delete a page, it 's data will be stored as "Recently deleted". If you create/insert a page with the same heading afterwards, this data will be assigned to the new/moved page. That's all.

KR

Martin

Re: Problem with page_params.php ?

Posted: Mon Jan 03, 2011 8:09 am
by manu
Thx Martin

This is goodNews and looks like a lot of brainware behind this feature.
regards
manu

Re: Problem with page_params.php ?

Posted: Thu Jan 27, 2011 9:41 pm
by jerry
Hi I just had the same experience

After some updates on the site the page param file was out of synchronization with content so my descriptions and plugins was assigned to other pages or lost. There must be a bug some place.

Environment: CMSimpleXH ver. 1.4. There is no update of page_params.php in this version so it must be one from the earlier update.

I just replaced page_params with the one from the last backup so I don't need help to solve the problem. It's just a bug report.
jerry