I up dated Durpal 5.7 to 6.x-1.0 and used adsense_injector-6.x-2.7

When I tried installing and AdSense with AdSense Injector in the blogs, or a page, or an article I get this: When I go to the blog and open a blog. I get this error:

(Fatal error: Call to undefined function: stripos() in /hsphere/local/home/garypalm/mountainviewarchery.com/sites/all/modules/adsense/adsense.module on line 561).

I've worked with Durpal for several years with no problems. I'd appreciate any help.

Comments

Chad_Dupuis’s picture

I think this is because you are using PHP 4. The latest version of adsense includes an update for this: Fix #544472: use stristr() instead of stripos() which is not available in PHP4

hswong3i’s picture

Project: Content Injector (formerly AdSense Injector) » Google AdSense integration
Version: 6.x-2.7 » 6.x-1.x-dev
Component: Miscellaneous » Code
Category: support » bug
Status: Active » Needs review

Thank you for the update and confirmation :D

Moreover, as this should belongs to adsense.module, I would like to move the issue to there.
Please feel free to correct me.

jcnventura’s picture

Status: Needs review » Fixed

Indeed, this has been fixed back in September 2009 #544472: function stripos() is only available on PHP5 or higher, but last week's release is the first non-dev to have it.

João

Status: Fixed » Closed (fixed)

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