Pages display unformatted menus only - php error recorded - new install
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Pages display unformatted menus only - php error recorded - new install
[30-Dec-2010 11:16:05] PHP Fatal error: Cannot use object of type stdClass as array in C:\www\MHCMS\tmp\templates_c\News^%%18^18E^18E3D89C%%module_db_tpl%3ANews%3BsummarySample.php on line 26
The pages display the menu structure only and no articles. At first I thought it was missing a CSS file but then realized the default news article was not showing.
This is a brand new install with all defaults. I have installed this CMS successfully before on another server. The only differences I can recall is my other server has ZEND on it - but I did not see that requirment.
It's like the templates aren't processing. Wiped out the installations and re-installed with the same result. Suggestions?
The pages display the menu structure only and no articles. At first I thought it was missing a CSS file but then realized the default news article was not showing.
This is a brand new install with all defaults. I have installed this CMS successfully before on another server. The only differences I can recall is my other server has ZEND on it - but I did not see that requirment.
It's like the templates aren't processing. Wiped out the installations and re-installed with the same result. Suggestions?
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorded - new install
FYI: Running PHP 5.3.4 w/FastCGI on IIS6 w/MySql5.5.8 and CMS 1.9.2....
PHP seems to be running fine. Config gave me all green on CMS install. No errors at all.
Document attached is a home page snapshot...
PHP seems to be running fine. Config gave me all green on CMS install. No errors at all.
Document attached is a home page snapshot...
- Attachments
-
[The extension pdf has been deactivated and can no longer be displayed.]
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
Anyone? Anything?
Am I asking the questions wrong?
Apparently the attachment quota has been reached... hmm..
Am I asking the questions wrong?
Apparently the attachment quota has been reached... hmm..
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Pages display unformatted menus only - php error recorde
This Indicates an error on line 26 of your news module summary template named 'Sample'. It indicates that you are using array accessors (. or []) where a -> is needed because the item is an object.[30-Dec-2010 11:16:05] PHP Fatal error: Cannot use object of type stdClass as array in C:\www\MHCMS\tmp\templates_c\News^%%18^18E^18E3D89C%%module_db_tpl%3ANews%3BsummarySample.php on line 26
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
Thanks Calguy....
But that leads the question as to why? This is a totally default install. I have not modified anything. Just did the default install with sample pages..
Does this mean one of my prerequisites are not configured correctly? Is the CMS code not compatible with the latest PHP?
But that leads the question as to why? This is a totally default install. I have not modified anything. Just did the default install with sample pages..
Does this mean one of my prerequisites are not configured correctly? Is the CMS code not compatible with the latest PHP?
Re: Pages display unformatted menus only - php error recorde
Look in your system info page to see if any yellow ! or red X...
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
On the main page the only ! showing is regarding the mailer..
On the system info the only X is:
config_file: 0666 config.php writable. It is more safe if you change permission to read-only
Everything else is green.... or no mark at all....
On the system info the only X is:
config_file: 0666 config.php writable. It is more safe if you change permission to read-only
Everything else is green.... or no mark at all....
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Pages display unformatted menus only - php error recorde
You must've changed something in your News Summary template named 'sample'.
Line 26 on mine is:
I suggest you create a new news summary template, and mark it as default.
Line 26 on mine is:
Code: Select all
{if $pagecount > 1}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
Guys - really appreciate the help.
I have not modified anything. Didn't even change the template for the page to use.
Changed it to simple format and the page now displays.
Changed to the "ocean theme" and there is a message accross the top that says:
string(121) "Smarty error: [in tpl_head:27 line 6]: syntax error: unrecognized tag 'JQueryTools' (Smarty_Compiler.class.php, line 590)"
Tried another them on the home page and there are a lot of this errro:
string(71) "Smarty error: unable to read resource: "globalcontent:adsense vertical""
I'm sort of thinking my setup is still not quite right.....
I have not modified anything. Didn't even change the template for the page to use.
Changed it to simple format and the page now displays.
Changed to the "ocean theme" and there is a message accross the top that says:
string(121) "Smarty error: [in tpl_head:27 line 6]: syntax error: unrecognized tag 'JQueryTools' (Smarty_Compiler.class.php, line 590)"
Tried another them on the home page and there are a lot of this errro:
string(71) "Smarty error: unable to read resource: "globalcontent:adsense vertical""
I'm sort of thinking my setup is still not quite right.....
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
I looked at that template and mine says the same thing.......calguy1000 wrote:You must've changed something in your News Summary template named 'sample'.
Line 26 on mine is:I suggest you create a new news summary template, and mark it as default.Code: Select all
{if $pagecount > 1}
So, I'm thinking it's not the tenmplates, etc, it the way it being processed.....
-
- Forum Members
- Posts: 24
- Joined: Sat Jan 09, 2010 4:38 pm
Re: Pages display unformatted menus only - php error recorde
It is line 26 of the smarty complied template. Please post line 26 of that file (it is given in the error message), and we may be able to help more.
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
Okay - I think it's MySql.
The schema is created and the tables are created but when I do something simple like add a news catagory, it says "Added Successfully" but it's not there.
The schema is created and the tables are created but when I do something simple like add a news catagory, it says "Added Successfully" but it's not there.
Re: Pages display unformatted menus only - php error recorde
We are experiencing the same problem with a clean install of 1.9.2. I tried the same thing you did with creating a news category, and CMSMS gave the message that the category was successfully created. No category appeared in the news module, however. I looked at the table structure via PHPMyAdmin and noticed that it appears that there are missing tables. In an older production CMSMS site I see that there are 6 cms_module_news tables. (_news, _news_categories, _news_categories_seq, _news_fielddefs, _news_fieldvals, and _news_seq). In my new installation, there are only 2 cms_module_news_ tables. (_news_categories_seq, and _news_seq) It seems as though the install failed to create all of the necessary tables.
CMSMS 1.9.2
Windows Server 2003
IIS6
PHP 5.3.4
MySQL 5.5.8
CMSMS 1.9.2
Windows Server 2003
IIS6
PHP 5.3.4
MySQL 5.5.8
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
Thanks for letting me know I'm not crazy !
have you come up with a solution? I am thinking about going back to the older versions another site (I have running) is using.
I do not know if it's a MySQL problem or something else....

have you come up with a solution? I am thinking about going back to the older versions another site (I have running) is using.
I do not know if it's a MySQL problem or something else....
-
- Forum Members
- Posts: 10
- Joined: Thu Dec 30, 2010 7:40 pm
Re: Pages display unformatted menus only - php error recorde
I uninstalled MySQL 5.5.5 and went back to a know version 5.0x.
Re-ran the install script (did not change any CMS stuff) and it runs perfectly.
When admining 5.5.5 I notice a lot of quirks....
Re-ran the install script (did not change any CMS stuff) and it runs perfectly.
When admining 5.5.5 I notice a lot of quirks....