Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 2:53 am (All times are UTC )

 


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  [ 21 posts ] 
Author Message
Posted: Thu Nov 05, 2009 9:53 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jun 18, 2008 10:52 am
Posts: 4
I have updated my website to 1.5.15 and I'm getting this strange error on my pages.

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/virtual/site714/fst/var/www/html/libraries/joomla/application/pathway.php on line 209

Please help!


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 10:13 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Tue Sep 06, 2005 11:18 am
Posts: 1119
Location: Germany
Warning: cannot yet handle MBCS in html_entity_decode

If you are using PHP 4 and get the error message “Warning: cannot yet handle MBCS in html_entity_decode” will get displayed on your page. This is a bug in PHP 4 itself.

My recommendation would definitely be asking you to upgrade to PHP 5.

PHP Bugs: #25670: cannot yet handle MBCS in html_entity_decode()

_________________
MCITP - Microsoft Certified IT Professional
CCNA - Cisco Certfied Network Administrator
LPI - Linux Professional
PN for Online Transcript ID Check
http://www.mindset.de


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 10:15 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jun 18, 2008 10:52 am
Posts: 4
Yes its PHP Version 4.3.10


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 10:16 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Tue Sep 06, 2005 11:18 am
Posts: 1119
Location: Germany
upgrade now !!

php 4 is obsolete and EOL = end of life !

_________________
MCITP - Microsoft Certified IT Professional
CCNA - Cisco Certfied Network Administrator
LPI - Linux Professional
PN for Online Transcript ID Check
http://www.mindset.de


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 10:29 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jun 18, 2008 10:52 am
Posts: 4
Thanks. I will try that!


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 11:38 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11676
Location: **Translation Matters**
If, for some reason, a user can't switch to php 5, here is a solution.
Edit libraries/joomla/application/pathway.php

and change last function to

Code:
function _makeItem($name, $link)
   {
      $item = new stdClass();
      if((version_compare( phpversion(), '5.0' ) < 0)) {
      $item->name = html_entity_decode($name);
      } else {
      $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
      }
      $item->link = $link;

      return $item;
   }

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 2:03 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jun 18, 2008 10:52 am
Posts: 4
Thanks,

Your solution is working! I'm waiting for my hosting provider to switch to PHP5.
Thanks to you all!


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 3:59 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Nov 05, 2009 3:54 pm
Posts: 1
Thanks a lot for that code. You saved my day (and kept my site back in business).

I have contacted my webhost and asked why they run PHP 4.4.4 on their servers. Hope they have a good answer...

infograf768 wrote:
If, for some reason, a user can't switch to php 5, here is a solution.
Edit libraries/joomla/application/pathway.php

and change last function to

Code:
function _makeItem($name, $link)
   {
      $item = new stdClass();
      if((version_compare( phpversion(), '5.0' ) < 0)) {
      $item->name = html_entity_decode($name);
      } else {
      $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
      }
      $item->link = $link;

      return $item;
   }


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 8:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jun 02, 2009 12:10 pm
Posts: 5
Thank you very much. My host shows that I'm running PHP5, but I still needed this fix. I really appreciate it.


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 10:03 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 03, 2007 9:37 am
Posts: 30
same problem here after updating Joomla 1.5.14 to 1.5.15.
I'm running PHP 5.2.6
after changing function _makeItem the problem is solved.


Top
  E-mail  
 
Posted: Fri Nov 06, 2009 2:28 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Dec 11, 2005 7:53 pm
Posts: 22
Here's the solution from Joomla: http://docs.joomla.org/Why_do_I_get_the_message_%22Warning:_cannot_yet_handle_MBCS_in_html_entity_decode%22


Top
  E-mail  
 
Posted: Fri Nov 06, 2009 6:40 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11676
Location: **Translation Matters**
dogpaw wrote:

LOL...
Where do you think that one came from?

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Nov 10, 2009 4:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Jul 26, 2008 4:18 pm
Posts: 8
Great advice!
Unfortunately, it did not work on my server. Any other ideas?

thanks
Steve VR


Top
  E-mail  
 
Posted: Tue Nov 10, 2009 4:21 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Jul 26, 2008 4:18 pm
Posts: 8
Sorry folks, it DID work! I was in the wrong directory.

Which smiley do I use for "idiot error"?

Steve VR


Top
  E-mail  
 
Posted: Wed Nov 11, 2009 5:49 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Jun 11, 2007 2:28 pm
Posts: 83
Location: Florianópolis-SC
Thank you!

infograf768 wrote:
If, for some reason, a user can't switch to php 5, here is a solution.
Edit libraries/joomla/application/pathway.php

and change last function to

Code:
function _makeItem($name, $link)
   {
      $item = new stdClass();
      if((version_compare( phpversion(), '5.0' ) < 0)) {
      $item->name = html_entity_decode($name);
      } else {
      $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
      }
      $item->link = $link;

      return $item;
   }

_________________
Luis Henrique - Tetê
- teteijui@gmail.com
- twitter.com/teteijui


Top
  E-mail  
 
Posted: Fri Nov 13, 2009 6:40 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 28, 2009 8:09 pm
Posts: 6
:-\ I have an issue with forcing a user to upgrade to php 5 since supposedly, Joomla still supports PHP 4. This error message is not a bug in PHP 4, they had not implemented MBCS support in PHP 4.

Are there any other PHP 4 issues I should know about?

Actually, I agree that upgrading to PHP5 is the smart thing to do, but not always possible. The FAQ should state that Joomla 1.5.15 no longer supports PHP 4 if this is the intent.

Larry


Top
  E-mail  
 
Posted: Fri Nov 13, 2009 7:02 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11676
Location: **Translation Matters**
lcwakeman wrote:
:-\ I have an issue with forcing a user to upgrade to php 5 since supposedly, Joomla still supports PHP 4. This error message is not a bug in PHP 4, they had not implemented MBCS support in PHP 4.

Are there any other PHP 4 issues I should know about?

Actually, I agree that upgrading to PHP5 is the smart thing to do, but not always possible. The FAQ should state that Joomla 1.5.15 no longer supports PHP 4 if this is the intent.

Larry

Cool.... :pop
It was a simple mistake we did when patching 1.5.14 to release 1.5.15.
Nobody's perfect...
http://docs.joomla.org/Why_do_I_get_the ... _decode%22
http://joomlacode.org/gf/project/joomla ... m_id=18612

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Fri Nov 13, 2009 7:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 28, 2009 8:09 pm
Posts: 6
8) Tell me about it. Just caused all kinds of grief this morning.


Top
  E-mail  
 
Posted: Wed Nov 18, 2009 8:55 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jul 24, 2007 1:33 am
Posts: 33
I used the code from infograph with no problem. I also upgraded to PHP 5.0+ from 4.x on DownDoggy.com with no problems.


Top
   
 
Posted: Sat Nov 21, 2009 2:13 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Oct 10, 2009 4:58 am
Posts: 3
I had the same problem. I put the 1.5.15 updates on 3 web sites I run (2 for businesses for 1 personal ) and it broke all 3.

The home page would work, but any page off them menu gave me a list of about 50 line errors in the pathway.php file. I thought maybe bad transfer so I re-uped the pathway.php file from the 1.5.15 upgrade folder and no change. After a few minutes of messing with it I just re-ftpd the pathway.php from the 1.5.14 full install folder and it fixed it. At least it didnt do any permanent damage and the site were only out for a few minutes.


Top
  E-mail  
 
Posted: Sat Nov 21, 2009 2:30 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 21, 2009 12:37 am
Posts: 27
Ok so this fixed my page where I listed feeds (RSS Feeds I Follow) which had this error, but it didn't fix my feed from my WordPress blog on the homepage. How do I fix that? Does anyone know?

http://www.sixdegreeswebdesign.com
Jrdpa

infograf768 wrote:
If, for some reason, a user can't switch to php 5, here is a solution.
Edit libraries/joomla/application/pathway.php

and change last function to

Code:
function _makeItem($name, $link)
   {
      $item = new stdClass();
      if((version_compare( phpversion(), '5.0' ) < 0)) {
      $item->name = html_entity_decode($name);
      } else {
      $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
      }
      $item->link = $link;

      return $item;
   }


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 

Quick reply

 



Who is online

Users browsing this forum: Subadai and 18 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 © 2000, 2002, 2005, 2007 phpBB Group