Slashes in JoomlaWhen you install a new copy of Joomla on your server, you may experience strange coding issues like the snapshot to the right. The text for the title of the anchor contains a \ slash in it. When you inspect the code for the link it looks similar to the following:

Added entities in code Joomla
<a href="/help/\&quot;http:/google.com\&quot;" target="\&quot;_blank\&quot;" title="\&quot;Google.com\&quot;">Sed tincidunt convallis dolor at luctus.</a>

The correct code should look like the following code.

<a href="http://google.com" target="_blank" title="Google.com">Sed tincidunt convallis dolor at luctus.</a>
This cannot be fixed in the Joomla editor. To fix this, a system setting will need to be changed.

What causes the slashes to be added?

This is caused by having magic_quotes_gpc turned on in your php.ini. The magic_quotes_gpc will add slashes to quotes when saving your articles. To fix this you will need to disable magic_quotes_gpc. You can do this by following the steps below.

Turning magic_quotes_gpc off

  1. Log into your cPanel.
  2. Go to the File manager. Select the public_html directory and click Go.
  3. Edit your php.ini file.

    Note! If you do not have a php.ini, our tech support can restore it to your public_html.

  4. magic quotes on JoomlaFind the line in your php.ini that says magic_quotes_gpc.
    magic_quotes_gpc = On

    magic quotes off JoomlaChange the Value to Off.

    magic_quotes_gpc = Off

    It should look like the snapshot to the right.

    Save the changes.

  5. Fixed without the slashes JoomlaFinally, make sure your php.ini file is recursive. Now when you hover over the link your will see the \ slashes gone.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}