Solutions for some standard erros in joomla

Hello friends,
Today we will discuss here about some standard errors comes in joomla website development.
1) Solve the error of function ereg() is deprecated :-
Generally this error comes when we are using ereg() functions. There is a standard solutions of it by using preg() function instead of ereg() function. Because ereg() functions are deprecated.
Suppose if you are using,

ereg_match("/foo/g",$needle,$haystack);

and you are getting the error like function ereg() is deprecated then you should write like,

preg_match("/foo/g",$needle,$haystack);

2) Solve the error of Call-time pass-by-reference has been deprecated :-
This type of errors because of some minor mistakes we made or it is in the module file that we use ready made.

Suppose if you are using,

call_user_func('Formo_'.$name.'::load', & $this);

and you are getting error like Call-time pass-by-reference has been deprecated than you have to just remove the & before $this.

call_user_func('Formo_'.$name.'::load', $this);

3) Solve the error of function split() is deprecated :-
Generally this error comes when we are using split functions. There is a standard solutions of it by using explode() function instead of split() function. Because split() functions are deprecated.
Suppose if you are using,

split_match("/foo/g",$needle,$haystack);

and you are getting the error like function split() is deprecated then you should write like,

explode_match("/foo/g",$needle,$haystack);

4) Another general error comes like Could not instantiate mail function :-

In this case you would have to follow the steps written as below,

Go to Admin panel > Global Configuration > Server > Mail Settings > Mailer and select SENDMAIL there,instead of PHP MAIL FUNCTION.

5) Remove index.php from the url :-

After making a joomla site many developers faces the problem of removing the index.php from the url.

For that you would have to follow below steps :-
• Go to the Global Configuration area within your Joomla admin.
• Under SEO Settings, click YES for the following 3 items:
• Search Engine Friendly URLs Yes
• Use Apache mod_rewrite Yes
• Add suffix to URLs Yes
• Rename you htaccess.txt file to .htaccess
• Use a text editor to remove the “#” before the words RewriteBase on line 70 (Joomla 1.5.23)

These were some standard errors comes in joomla website development. Solve and Enjoy.

Speak Your Mind

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: