Hi,
I have just installed CMSMS 1.4.1 "Spring Garden" and the PageBlocks module 0.1.5. (I am using the French localization)
I think there are two problems :
- When I go to the Content Menu > PageBlocks : http://ircf.fr/tmp/cmsms_error_1.gif
Here I can't see the "Add Block" buttons in front of each page.
- When I go to the Content Menu > Pages, I click on the "create new content" button, then I select "PageBlock content", I have an empty page like this : http://ircf.fr/tmp/cmsms_error_2.gif
In the second case, if I disable all CSS (using the webdeveloper toolbar), I can see a PHP error message : http://ircf.fr/tmp/cmsms_error_2_visible.gif
I am gonna try to fix this in the PHP code, but I would like to know if someone could help me to fix this, any ideas ?
Php error when trying to add a PageBlock content on CMSMS 1.4.1
-
- Forum Members
- Posts: 10
- Joined: Wed Aug 13, 2008 8:42 am
-
- Forum Members
- Posts: 10
- Joined: Wed Aug 13, 2008 8:42 am
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
Hi again,
I almost forgot, here is my server config :
- OS : Linux Ubuntu 6.10 Server
- Web server : Apache 2.2.4 with PHP 5.2.1
I have tried to remove ampersands (&) before each object, but it doesn't change anything...
Maybe this is a PHP 4 / PHP 5 compatiblity issue ?
Anybody can help please ?
I almost forgot, here is my server config :
- OS : Linux Ubuntu 6.10 Server
- Web server : Apache 2.2.4 with PHP 5.2.1
I have tried to remove ampersands (&) before each object, but it doesn't change anything...
Maybe this is a PHP 4 / PHP 5 compatiblity issue ?
Anybody can help please ?
-
- Forum Members
- Posts: 10
- Joined: Wed Aug 13, 2008 8:42 am
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
It seems the CMSMS Tree class (/lib/Tree/Tree.php) has been modified and is not (yet/still) implemented correctly by the PageBlocks Module (/modules/PageBlocks/classes/class.PageBlocksContent.php)
I have tried to modify line 289 from file class.PageBlocksContent.php like this :
// This was the previous line 289
$hierarchy = $hierManager->getNodeById($_GET['content_id']);
// This is the line I put instead, I assumed I had to retrieve the root node from the "new" Tree object...
$hierarchy = $hierManager->nodes->nodes[0];
This removes the PHP error message and even display part of the pageblocks content form. Unfortunately, it seems the forms doesn't display entirely and I have an error when trying to submit it...
If nobody can help me to fix this, I think I am gonna try another module, or CMS (if I can't find a PageBlocks equivalent for CMSMS)...
Hope someone can help !
I have tried to modify line 289 from file class.PageBlocksContent.php like this :
// This was the previous line 289
$hierarchy = $hierManager->getNodeById($_GET['content_id']);
// This is the line I put instead, I assumed I had to retrieve the root node from the "new" Tree object...
$hierarchy = $hierManager->nodes->nodes[0];
This removes the PHP error message and even display part of the pageblocks content form. Unfortunately, it seems the forms doesn't display entirely and I have an error when trying to submit it...
If nobody can help me to fix this, I think I am gonna try another module, or CMS (if I can't find a PageBlocks equivalent for CMSMS)...
Hope someone can help !
-
- Forum Members
- Posts: 10
- Joined: Wed Aug 13, 2008 8:42 am
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
I just tried to install BlockBuilder module, hoping this would replace PageBlocks...
Unfortunately Block Builder ruined my CMSMS install, I can't use CMSMS back office anymore.
I think I am gonna wait until CMSMS modules are more stable, before using CMSMS...
I am going back to Typo3 for the moment (what a pity !), and I will give CMSMS a try in a few months.
See you.
Unfortunately Block Builder ruined my CMSMS install, I can't use CMSMS back office anymore.
I think I am gonna wait until CMSMS modules are more stable, before using CMSMS...
I am going back to Typo3 for the moment (what a pity !), and I will give CMSMS a try in a few months.
See you.
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
I have heard that PageBlocks worksmathieu.bautista wrote: I just tried to install BlockBuilder module, hoping this would replace PageBlocks...
However you can try CGSimpleSmarty
Alby
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
I do have the same problem, and it has been like that since the version 1.3.0
Before that the Page Blocks function was working properly and it really is wonderful when it works. If you try versions 1.1.2, then Page Blocks should work beautifully. Unfortunately I need to use later versions, because of other features, and I still have not been able to sort out how the Page Blocks module can be repaired.
If anyone have a tip, then please scream out. I have posted several forum posts today in different threads regarding the same problem. Most of these threads were started very recently, so it seems many is experiencing the same headache.
Jonathan
Before that the Page Blocks function was working properly and it really is wonderful when it works. If you try versions 1.1.2, then Page Blocks should work beautifully. Unfortunately I need to use later versions, because of other features, and I still have not been able to sort out how the Page Blocks module can be repaired.
If anyone have a tip, then please scream out. I have posted several forum posts today in different threads regarding the same problem. Most of these threads were started very recently, so it seems many is experiencing the same headache.
Jonathan
-
- Forum Members
- Posts: 10
- Joined: Wed Aug 13, 2008 8:42 am
Re: Php error when trying to add a PageBlock content on CMSMS 1.4.1
Hi,
I think I finally found a simple trick to make PageBlocks work for non-US users, simple add the following code to your /admin/lang/ext/YOUR_LANG/admin.inc.php :
I think this problem is due to the /modules/PageBlocks/action.addblockcontent.php program, that uses the value of contenttype_content to instanciate a class.
Hope this helps.
I think I finally found a simple trick to make PageBlocks work for non-US users, simple add the following code to your /admin/lang/ext/YOUR_LANG/admin.inc.php :
Code: Select all
$lang['admin']['contenttype_content'] = 'Content';
Hope this helps.