Enabled the module, allowed the filter, used the filter and saved the page... but getting fatal errors like this:

PHP Fatal error: __clone method called on non-object in /data-store/www/sites/all/modules/mobile_codes/mobile_codes.module on line 187

Happened on the latest stable version but also on the dev which I tried just afterwards.

Comments

FreeFox’s picture

I second this however it's another line.

PHP Fatal error: __clone method called on non-object in .../sites/all/modules/mobile_codes/mobile_codes.module on line 177

FreeFox’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
ethant’s picture

Same problem. Module is rendered unusable while this issue remains.

francois o’s picture

subscribing

Same problem different line too:
Fatal error: __clone method called on non-object in /xxxx/sites/all/modules/mobile_codes/mobile_codes.module on line 172

FreeFox’s picture

Tried again today on 7.x-2.x-dev of 2011-Jun-07. Problem is still there, for me on line 172 now.

Could the maintainer have a look at this please?

Thanks in advance

drwits’s picture

also getting this error...
didn't get it in d6.. only d7

trying to get the url in a custom module "theme('mobilecode', $final_url, array('#preset' => 'large'));"
again this worked in d6
thoughts?

thanks a bunch

clemens.tolboom’s picture

I'm just using the input filter.

Zapping the clone word removed my white screen :(

tky’s picture

Version: 7.x-2.x-dev » 7.x-2.0

I have the same error code while I tried to put similar code in my tpl.php and views php field:
theme('mobilecode', $final_url, array('#preset' => 'large'));
Any clue?

socialnicheguru’s picture

i had to clear my cache then this went away

Edit:
clearing cache did not solve it

clone is called on lines 173 and 179. I am not sure if the ctools function returns an object in this case and thus clone error.

for now I removed "clone". I don't know what effect that might have

Edit2:
this happened for me when I tried to a link field in my content type and then attempted to use 'mobile codes" as the display type

Edit 3:

I noticed I got this error when I placed a CCK link into my node and used mobile code as a display in manage display.

deciphered’s picture

Status: Active » Fixed

Fixed and committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

aze2010’s picture

Hi Folks,

commited? My D6 Version got this problem, too. No fixing?

Please help us.

Thank you

Report:

"stderr: PHP Fatal error: __clone method called on non-object" .... "on line 187"

FreeFox’s picture

Although it was in D7 I had the error again but after I installed the dev version and cleared all caches the error was gone so ... try to clear all caches (http://www.yourdomain.be/admin_menu/flush-cache)

Hope this helps