The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Fri Dec 04, 2009 6:42 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 03, 2009 10:16 am
Posts: 7
when using JCal Pro Mini-calendar module in php1.5.15 showing the below error.

Deprecated: Function ereg_replace() is deprecated in C:\wamp\www\MCB\components\com_jcalpro\config.inc.php on line 474

Warning: strtoupper() expects parameter 1 to be string, array given in C:\wamp\www\MCB\libraries\joomla\environment\request.php on line 97


How to rectify this error?

Please send me the solution as early as possible.

Thanks.
Jayaprakash.


Top
 Profile  
 
PostPosted: Wed Dec 22, 2010 4:54 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 22, 2010 4:41 am
Posts: 3
Hi there, i have also got this warning message,
Warning: strtoupper() expects parameter 1 to be string, array given in C:\wamp\www\new cms\libraries\joomla\environment\request.php on line 97

have you removed this error. can any one help


Top
 Profile  
 
PostPosted: Wed Dec 29, 2010 7:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 13, 2006 6:27 am
Posts: 20
I'm also looking for a solution to getting rid of this error.


Top
 Profile  
 
PostPosted: Tue Jan 04, 2011 3:56 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue May 27, 2008 3:20 am
Posts: 183
Location: Australia
I have the same issue on my site too.

Its a nasty and not the best fix but I disabled error reporting.

out of site out of mind. component still functions but the warning messages are gone.

_________________
PB Web Development - http://pbwebdev.com
Joomla Beat Podcast - http://joomlabe.at


Top
 Profile  
 
PostPosted: Tue Jan 04, 2011 4:00 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue May 27, 2008 3:20 am
Posts: 183
Location: Australia
Just also like to add, that the error started appearing when I upgraded the PHP version from version 5.2.x to 5.3.4.

Then the issues started appearing in a few components including K2 and JCalPro.

_________________
PB Web Development - http://pbwebdev.com
Joomla Beat Podcast - http://joomlabe.at


Top
 Profile  
 
PostPosted: Tue Jan 04, 2011 4:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 13, 2006 6:27 am
Posts: 20
I ended up changing error reporting in php.ini from:
Code:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

to:
Code:
error_reporting = E_ALL & ~E_NOTICE


Top
 Profile  
 
PostPosted: Tue Jan 04, 2011 5:50 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue May 27, 2008 3:20 am
Posts: 183
Location: Australia
yeh essentially what I did.. but it doesn't fix the problem :S

_________________
PB Web Development - http://pbwebdev.com
Joomla Beat Podcast - http://joomlabe.at


Top
 Profile  
 
PostPosted: Tue Jan 04, 2011 6:24 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 13, 2006 6:27 am
Posts: 20
Right, it doesn't fix the problem, but at least the errors don't show up anymore.

I couldn't find a solution anywhere. It seems like the error is getting generated from the getVar function.


Top
 Profile  
 
PostPosted: Sat Sep 24, 2011 1:39 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 15, 2008 11:32 pm
Posts: 6
For the Deprecated Error open your php file and look for the line. Change the ereg_replace to preg_replace and that should fix the error. It was due to a change in that function in the newer php version.

You can check this out: http://devthought.com/2009/06/09/fix-er ... in-php-53/

Emm


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 4:27 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 15, 2010 5:43 am
Posts: 1
Add this after $hash to solve the prob:

='default'


Top
 Profile  
 
PostPosted: Thu Jun 21, 2012 12:43 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jul 31, 2009 5:47 pm
Posts: 1
zappy wrote:
Add this after $hash to solve the prob:

Hey zappy. Where can i find that $hash?
Thank you.
Klaus


Top
 Profile  
 
PostPosted: Sat Nov 24, 2012 12:42 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jun 29, 2009 9:10 am
Posts: 1
Quote:
Hey zappy. Where can i find that $hash?


check at line 97 on /libraries/joomla/environment/request.php
$hash = 'default';
it solved me


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group