Welcome, Guest
Username Password: Remember me

Attempt to assign property of non-object in .... mobilebot.php
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Attempt to assign property of non-object in .... mobilebot.php

Attempt to assign property of non-object in .... mobilebot.php 11 years, 4 months ago #12923

  • josh78
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi,

I've tried looking for the solution for my problem in the forum but I can't find it.

Since I upgraded MJ to 1.2.0 and mobilebot plugin to 1.2.0.1, I got a lot of warning/error messages in error_log file. At first, I didn't think this error was serious until I saw the error_log file size consume a lot of disk space (hundred and more MBs).

There are two error that keep repeating from time to time:

 
[06-Dec-2012 08:22:55] PHP Warning: Attempt to assign property of non-object in /home/xyz/public_html/plugins/system/mobilebot.php on line 698
[06-Dec-2012 08:22:57] PHP Warning: Attempt to assign property of non-object in /home/xyz/public_html/plugins/system/mobilebot.php on line 698
[06-Dec-2012 08:22:57] PHP Warning: Attempt to assign property of non-object in /home/xyz/public_html/plugins/system/mobilebot.php on line 698
.....
 


 
06-Dec-2012 08:23:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xyz/public_html/plugins/system/mobilebot.php:698) in /home/xyz/public_html/components/com_resource/library/php/jsfilemanager.php on line 176
[06-Dec-2012 08:23:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xyz/public_html/plugins/system/mobilebot.php:698) in /home/xyz//public_html/components/com_resource/library/php/jsfilemanager.php on line 185
[06-Dec-2012 08:23:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xyz/public_html/plugins/system/mobilebot.php:698) in /home/xyz//public_html/components/com_resource/library/php/jsfilemanager.php on line 186
[06-Dec-2012 08:23:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xyz/public_html/plugins/system/mobilebot.php:698) in /home/xyz//public_html/components/com_resource/library/php/jsfilemanager.php on line 187
 


My system info:
  • Joomla 1.5.26
  • Apache with PHP 5.3.18
  • I put mobile content specific tags in my php template (com_resource template)
  • Joomla cache plugin disable
  • Mighty Resources 1.5.9 Build 8087


I think there is something wrong with mobilebot plugin 1.2.0.1. We've talked about mobilebot plugin before in this thread: www.mobilejoomla.com/forum/7-installation-a-upgrade/12306-why-you-changed-mobile-content-plugin-type-in-mj-120.html. Maybe out last conversation can be useful to solve the issue.

I hope MJ support can help me to get rid of these errors.

Thank you
Last Edit: 11 years, 4 months ago by josh78.

Re: Attempt to assign property of non-object in .... mobilebot.php 11 years, 4 months ago #12927

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Most likely it means that you have removed one of plugins that was disabled via Extensions Manager popup of MJ. There are two solutions:
1. Remove all entries from #__mj_plugins database table and set new rules in Ext. Manager.
2. Patch plugins/system/mobilebot/mobilebot.php by replacing line #698 from
$p->type = '_mj_dummy_';

to
if(is_object($p)) $p->type = '_mj_dummy_';

Re: Attempt to assign property of non-object in .... mobilebot.php 11 years, 4 months ago #12961

  • josh78
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi,

Let me try your solution first. I'll let you know if it's working or not.

Thank you.

Re: Attempt to assign property of non-object in .... mobilebot.php 11 years, 4 months ago #13080

  • josh78
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi,

I tried the first solution, remove all entries from #__mj_plugins database table then I saw these repeating errors in error_log file

PHP Warning:  Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 143
[14-Dec-2012 01:00:01] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 167
[14-Dec-2012 01:00:01] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 695
[14-Dec-2012 01:00:01] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 704
[14-Dec-2012 01:02:17] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 143
[14-Dec-2012 01:02:17] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 167
[14-Dec-2012 01:02:17] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 695
[14-Dec-2012 01:02:17] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 704
[14-Dec-2012 01:02:45] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 167
[14-Dec-2012 01:02:45] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/mobile/amdd/amdd.php on line 143
[14-Dec-2012 01:02:45] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 695
[14-Dec-2012 01:02:45] PHP Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/plugins/system/mobilebot.php on line 704


I don't try the patch solution yet because I see there is new MJ 1.2.1. I'll upgrade my website's MJ and see if this new version solve my issue.

I'll keep you posted about my findings.

Thank you.

Re: Attempt to assign property of non-object in .... mobilebot.php 11 years, 4 months ago #13081

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Reinstall latest MJ version over existing version.

Warnings in amdd.php most likely mean that #__mj_amdd table is empty.
Warnings in mobilebot.php most likely mean that #__mj_plugins and #__mj_modules don't exist.
  • Page:
  • 1
Time to create page: 0.28 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.