Undefined property: stdClass::$ID Error

Support forum dedicated to free and advanced Joomla content presentation module with various layout options and data sources support.
GK User
Sun Jan 27, 2013 11:21 am
Hi I recently moved my site to a different server and everything was working fine, Then i decided to upgrade the News Show Pro module to the latest version and i got this error
JFolder::create: Could not create directory; Warning: Failed to move file!
when i tried to install so i changed the log_path and tmp_path to the new server and it installed fine. But now im getting these error messages and my thumb image is messed up

Notice: Undefined property: stdClass::$ID in /home/******/public_html/**********.com/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 174

Notice: Undefined property: stdClass::$access in /home/*******/public_html/*********.com/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 176

I'm using Fashion template, Iv searched the forum by i cant find any solutions to my problem. Hope you can help Thanks
User avatar
Fresh Boarder

teitbite
Sun Jan 27, 2013 3:36 pm
Hi

Those are notices not errors. Shown probably because different php version used on the server. Please simply hide it by disabling showing errors in global settings for server in joomla panel.
User avatar
Moderator

GK User
Mon Jan 28, 2013 6:57 am
teitbite wrote:Please simply hide it by disabling showing errors in global settings for server in joomla panel.


Hi teitbite

Thanks for the reply. I turned off error reporting but i am still getting those notices, Do i have to create a php.ini file and turn it off there ? or is there something else i can do. Thanks
User avatar
Fresh Boarder

teitbite
Mon Jan 28, 2013 10:41 am
Hi

If joomla setting takes no effect in this case You should disable showing errors manualy in php.ini file. Probably server is overriding the settings.
User avatar
Moderator

GK User
Mon Jan 28, 2013 7:08 pm
Hi teitbite

I asked my web hosts (webhostinghub) to create a php.ini file for me, they did so and i manually turned off display errors but unfortunately i am still getting those notices. Any other suggestions. Thanks
User avatar
Fresh Boarder

GK User
Mon Jan 28, 2013 7:50 pm
Ok i seem to have it working again, I uninstalled the latest version of news show pro and reinstalled an older version, i guess there must be a problem with the latest version on my site.
User avatar
Fresh Boarder

teitbite
Tue Jan 29, 2013 11:36 am
Hi

This is a strange case. Disabling errors from php.ini is working even for fatal errors which are making websites not show at all. I think the showing errors is overrided somewhere. There are really not many differences between this NSP version. I cannot recal any engine modifications for a long time. Ok. Anyway I'm glad it's working now.
User avatar
Moderator

GK User
Mon Feb 11, 2013 10:37 pm
I got the same error after installing version 3.1.3 on a Joomla 2.5.9.
Notice: Undefined property: stdClass::$ID in ****/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 174 Notice: Undefined property: stdClass::$access in ****/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 176 Notice: Undefined property: stdClass::$ID in /***/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 174 Notice: Undefined property: stdClass::$access in ***/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 176

I did the upgrade from version 2.9 to 3.1.3 because in IE articles are shown vertically in stead of horizontally.

Is a rollback the only solution?
User avatar
Junior Boarder

teitbite
Tue Feb 12, 2013 3:48 pm
Hi

Please disable showing errors in global settings for server. Is module orking fine despit of this warnings ?
User avatar
Moderator

GK User
Tue Feb 12, 2013 8:27 pm
teitbite wrote:Hi

Please disable showing errors in global settings for server. Is module orking fine despit of this warnings ?

I do not have access to the global settings for the server. Creating a local (just for my hostingaccount) php.ini or php5.ini with 'display_errors = Off' doesn't work. Except 7 lines with messy messages, the module seems to work fine.
User avatar
Junior Boarder

GK User
Tue Feb 12, 2013 9:20 pm
Hi I have the same problem!
It worked with 5.3 php before.
But after the upgrad I got the same message.

"Notice: Undefined property: stdClass::$ID in /home/kalvados/public_html/szeged/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 173

Notice: Undefined property: stdClass::$access in /home/kalvados/public_html/szeged/modules/mod_news_pro_gk4/gk_classes/gk.source.joomla.php on line 175"

I got back to the php version but it did not improve the situation.

And like him I havent got any acces for php.ini.
User avatar
Fresh Boarder

teitbite
Wed Feb 13, 2013 4:05 pm
Hi

Try just change a level of errors showing to none in joomla global configuratio for server.
User avatar
Moderator

GK User
Wed Feb 27, 2013 9:51 am
hi guys

is there a permanent fix for this issue?
i can hide the error reporting fine - but the errors temselves and making the pages load really slow and causing load issues on the server.

a fix so it does not even generate a message would be great!

thanks
User avatar
Platinum Boarder

teitbite
Thu Feb 28, 2013 10:23 am
Hi

"Undefined property" is not slowing server. This is showing when code was written not according to standards for the PHP version used on the server. This is more of a reminder for old PHP.

Just follow this lines in messages and declare this the mentioned values like for example $ID before it is called. A XX century codding style :)
User avatar
Moderator

GK User
Thu Feb 28, 2013 10:41 am
Hi all!

I restore the old version of mod_news_pro_gk4 and it works well.
That was urgent, so I did not time for experiment.

Sorry

Thx

Peter
User avatar
Fresh Boarder

teitbite
Thu Feb 28, 2013 1:24 pm
Hi

No problem. The most important is that it works now :)
User avatar
Moderator

GK User
Sun Mar 03, 2013 2:40 pm
teitbite wrote:Hi

"Undefined property" is not slowing server. This is showing when code was written not according to standards for the PHP version used on the server. This is more of a reminder for old PHP.

Just follow this lines in messages and declare this the mentioned values like for example $ID before it is called. A XX century codding style :)


andfor those of us who dont knowphp code? how would we do that? :)

google has been no help! lol
User avatar
Platinum Boarder

teitbite
Mon Mar 04, 2013 10:32 am
Hi

For those who do not know codding I assure that simply hiding showing errors is enough :) This messages are not having an impact on site functionality at all.
User avatar
Moderator


cron