Joomlander.Net

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Fatal error:
#529
Fatal error: 2 Years, 9 Months ago  
Hi there

I've installed this most excellent plugin. I use CB1.0.2 with Joomla 1.0.11. Everything looks good until i try to update a profile, on the front or backend, then i get this error

Fatal error: Call to undefined function: stripos() in /var/www/html/db/components/com_comprofiler/plugin/user/plug_cbprofilenotifier/cb.profile_notifier.php on line 77

any help would be very much appreciated

Wil
w1l
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#530
Re:Fatal error: 2 Years, 9 Months ago  
Your server is still running PHP 4.x. To get the same functionality in PHP 4, replace line 77:
Code:

if (!stripos($exclude,".$name."«»))

with
Code:

if (!strpos(strtolower($exclude),strtolower(".$name."«»)))

Do the same thing at line 104.

You might want to recommend to your webhost upgrading to PHP 5 if you have any intentions of running Joomla 1.5 in the near future.
brucescherzinger
Admin
Posts: 369
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#533
Re:Fatal error: 2 Years, 9 Months ago  
Hi Bruce

thanks for your reply. I tried replacing line 77, and 104 however this sprung another error on line 78

so i thought, ah well rather than try and solve that, I'll just step back and upgrade my PHP 4 to PHP 5. Which I've now down.
--------------------------

So sadly though I'm now getting a blank screen when saving updated user info. The update is not saved when I login again.

I saw from another post that I should have the error reporting set to simple, which i've done, still draws the blank page. It seems like you think this might fixable by changing my global settings.

currently they are:

PHP register_globals setting is `ON`
RG_EMULATION 'OFF'
The other post mentioned 'safe mode' - don't know where to find out about that ...

I still draw the error with RG_EMULATION 'ON'

I'd like to try turning my register_globals 'OFF' but i can't work out how to do this in the php.ini file
--------------------------

This is a bit of a problem cause I now can't turn the notifier off, so any user trying to login gets the blank screen ...

Any thoughts on this would be hugely appreciated, as I'm really keen to get this great functionality working

thanks again
Wil
w1l
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#534
Re:Fatal error: 2 Years, 9 Months ago  
I've modified my change, which had a couple typos in it. I should have changed stripos to strpos. That was the whole point of the change since PHP4 doesn't have the case-insensitive function stripos. I also omitted one right parenthesis. I've corrected the code in my previous post.

Now, however, if you have upgraded to PHP5 and the reverted plug-in is causing problems for you, I am not sure what to tell you. If you upgraded to PHP5 and are still using the modified plug-in, either try reverting it or make the correction to the code change in my previous post.
brucescherzinger
Admin
Posts: 369
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#536
Re:Fatal error: 2 Years, 9 Months ago  
FANTASTIC

thank you Bruce

It works a treat, this is a very very useful plugin.

/W
w1l
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: brucescherzinger

Member Access

Donations Accepted

Joomlander.Net is now accepting donations. Your donation, though not required to use this site or download files, will help to keep it online and keep the Joomla extensions coming. Donations are made through PayPal and are 100% secure. You can use your own PayPal account or any major credit card.