Jump to content

Warning: htmlentities() expects parameter 2 to be long


Guest Rob Hilken

Recommended Posts

Guest Rob Hilken

HIya,

I am getting a weird error on a few items in my shop -

this message appears in the <title> of the pages

"Warning: htmlentities() expects parameter 2 to be long, string given in /home/teeandto/public_html/shop/admin/sources/products/index.inc.php on line 949"

Can anyone shed any light on what is going on?

It only appears on 5 of my products as you can see from this google search

http://www.google.co.uk/search?q=Warning:+...al&filter=0

But I can't see what the problem is or why it would only affect certain products

Thanks for any help or advice anyone can give me!

Rob

Link to comment
Share on other sites

As this appears to only effect 1 product (?), and you have cleared the cache. I would suggest re-editing the product, and checking if the actual product title is "corrupt".

The line reported in the page title (line 949) does NOT contain the htmlentities on my 4.4.1 demo of CC4.

The htmlentities function is called on line 946.

It sounds like the product meta title was corrupted from a software error, and not seen during product editing, and so this is now part of the product database.

Re-editing the product should fix this. If it does not, I would recommend re-entering the meta title (as opposed to copy&paste), and also ensuring it only contains plain text.

Regards,

Jason

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...