Notifications
Clear all

Custom Pages problems in 3.5.3

2 Posts
2 Users
0 Reactions
3,106 Views
(@guest10763)
Posts: 0
 

I think you need to be made aware of couple of bugs that are in file admin/custpages.php in version 3.5.3

1.
When I put some text to custom page (new or old, no difference) and hit Preview button, text is shown in Preview, but it disappears from the text area, so when I click Submit, no text is put up. Yes, and it gives error for custpages.php line 83.
Solution:
In this file on line 57 was: if(strpos($thistext, "?>") === false) $output .= "<div id='pagetitle'>$title</div>nn$thistext";
Changed to: if(strpos($thistext, "?>") === false) {
$output .= "<div id='pagetitle'>$title</div>nn$thistext";
$text = $thistext;
}

That leaves the text that already was in the text area there.

2.
Whenever I hit Preview button, after submitting is made a new custom page, with new ID.
Solution:
In file custpages.php on line 56 was $id = isset($_GET['edit']) ? $_GET['edit'] : "";
Changed to: $edit = isset($_GET['edit']) ? $_GET['edit'] : "";

Both was tested, works alright, no problems.


 
Posted : 11/08/2011 12:23 pm
(@sheepcontrol)
Posts: 332
Reputable Member
 

Merged into release 3.5.5, topic locked.


 
Posted : 25/01/2015 4:44 am
Share: