save page layout

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
AntonSM
Posts: 1
Joined: Wed 4. Feb 2009, 07:20

save page layout

Post by AntonSM »

Hello,
i have the following hosting configuration:

mysql version 3.23.59
php version 4.3.11


When i create new page layout and save to database in
admin.pagelayout.tmpl.php, line 214, makes new sting with
page layout description, call aporeplace(serialize(($pagelayout)) and
save to db.

In mysql table, i have new row, which contains follow data:
a:62:{s:2:"id";i:0;s:11:"layout_name";s:5:"test2";s:14:"layout_default";i:0;s:12 ...

After, when this row loading, call $pagelayout = unserialize($row["pagelayout_var"])
and variable $pagelayout is not normal initialize.

I think, problem with quotes in save data.

What will you advise to me?

thank you
Post Reply