Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • gaygiorgia Friend
    #132356

    hi all. i’ve deleted my old site 1.5.3 with 1.5.4 updates and installed 1.5.6 quickstart teline 2.

    i’ve this error:
    <blockquote>Fatal error: Call to undefined function: mb_internal_encoding() in /web/htdocs/www.venetoinfo.it/home/modules/mod_janews/helper.php on line 336</blockquote>

    please solve it faster since i’ve no site or working backups… thx!!

    gaygiorgia Friend
    #265914

    i did the same procedure for both:

    TELINE 2 v1.3 QUICKSTART for 1.5.3:
    http://www.venetoinfo.it/1.5.3 —> no problem (it has known old bugs, but it does not return a fatal error)

    TELINE 2 v1.5 QUICKSTART for 1.5.6:
    http://www.venetoinfo.it/1.5.6 —> it returns a fatal error (see post above)

    gaygiorgia Friend
    #265987

    with xampp 1.6.6, on my local pc teline2quickstart 1.5.6 works.
    online not.
    if some moderator would see my server phpinfo, pm me.

    please… an answer 🙁

    Sherlock Friend
    #266009

    Hi gaygiorgia !
    What php version do you use ?

    Sherlock Friend
    #266013

    Hi gaygiorgia !
    This is problem in php version , In Ja News of 1.5.6 package to solve the charset problem , we have updated some funtions for smarttrim class. there is some function not working with old php version ( <= 4.0.5).
    We have fixed the problem Please download attachment file, extract it and overwrite to modulesmod_janews folder .thanks for report . We will update it to package soon.

    gaygiorgia Friend
    #266018

    hi hanin84,
    my php version on the server is:
    <blockquote>
    PHP Version 4.4.7

    System Linux webx85.ad.####### 2.6.18-92.1.10.el5PAE #1 SMP Tue Aug 5 08:14:05 EDT 2008 i686
    Build Date Nov 13 2007 11:19:00
    Configure Command ‘./configure’ ‘–prefix##################
    Server API CGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc/apache/php.ini
    PHP API 20020918
    PHP Extension 20020429
    Zend Extension 20050606 </blockquote>
    taken from my server website phpinfo

    gaygiorgia Friend
    #266019

    last update:
    with your modification http://www.venetoinfo.it/1.5.6 now works.
    so even if the problem is solved, i do not understand why i was affected by this problem, since my php version 4.4.7is higher than that written by you (4.0.5)

    gaygiorgia Friend
    #266024

    only a question, pls since i’ve not understood a thing:
    your attachment-modification of helper.php is a solution only for me and it has old problems or it is a “final general solution”?

    cgc0202 Friend
    #266157

    <em>@hainn84 74363 wrote:</em><blockquote>Hi gaygiorgia !
    This is problem in php version , In Ja News of 1.5.6 package to solve the charset problem , we have updated some funtions for smarttrim class. there is some function not working with old php version ( <= 4.0.5).
    We have fixed the problem Please download attachment file, extract it and overwrite to modulesmod_janews folder .thanks for report . We will update it to package soon.</blockquote>

    Hi Hainn,

    Could you please provide the correct helper.php for servers using

    old php version
    new php version

    and can you please provide the actual script changed?

    Also, can you please provide what Joomlart thread led to this modification? What exactly is being fixed here, when you stated smarttrim class? If you are referring to the Bossep thread, it may not be what I want to do.

    I did not encounter the problem stated by gaygiorgia, when I did a fresh install of Joomla 1.5.5-Teline II v1.5. I upgraded that by uploading the Joomla 1.5.5 to 1.5.6 because I did my installation before the Joomla 1.5.6 came.

    Thanks.

    Cornelio

    Sherlock Friend
    #266189

    Hi cgc0202 and gaygiorgia !
    the patch have fixed for old and new php version , it will update in teline ii in today !
    please on helper.php file in patch at about line 54 :
    old code :


    $row->introtext1 = SmartTrim::mb_trim($row->introtext, 0, $maxchars, $doc->_charset);

    new code :


    if (function_exists('mb_substr')) {
    $row->introtext1 = SmartTrim::mb_trim($row->introtext, 0, $maxchars, $doc->_charset);
    } else {
    $row->introtext1 = SmartTrim::trim($row->introtext, 0, $maxchars);
    }

    then please go to line 336 :


    function mb_trim($strin, $pos=0, $len=10000, $hiddenClasses = '', $encoding='utf-8' ) {
    mb_internal_encoding($encoding);

    ............

    in this mb_trim function using mb_internal_encoding function.

    gaygiorgia Friend
    #266250

    okok, now i’ve understood what was the problem: a function not implemented in my server php.

    but why i was affected by this iussue if my server phpinfo command return 4.4.7 as php version??

    Sherlock Friend
    #266263

    yes,i have search on php.net : http://vn2.php.net/manual/en/function.mb-internal-encoding.php and see that function run well in phpversion >= 4.0.6 . but in your case i still don’t understand .

    gaygiorgia Friend
    #266285

    ok, i’ll ask my hoster by mail. if i’ll get an answer interesting for you and others users i’ll post it here 🙂

    bossep Friend
    #266354

    Hello Hainn,
    NICE fix a lot better then what I sugested! This should work for all I belive.

    Bosse

    bossep Friend
    #266359

    hainn,
    Some small observations.

    Should it not be mb_trim instead of mb_substr in the if statement:

    if (function_exists('mb_substr')) {
    $row->introtext1 = SmartTrim::mb_trim($row->introtext, 0, $maxchars, $doc->_charset);
    } else {
    $row->introtext1 = SmartTrim::trim($row->introtext, 0, $maxchars);
    }

    It doesent really matter but for the clarety of the code. Both are loaded with the MB_lib.

    This is probably somting that could be seen as a BIG improvment if I am right.

    function mb_trim($strin, $pos=0, $len=10000, $hiddenClasses = '', $encoding='utf-8' ) {
    mb_internal_encoding($encoding);
    $strout = trim($strin);

    If I understand this right we could put in the tags we like to exclude in the Config form field, hidden classes
    Like people that like to keep links could put in <a> and people that like line break <BR /> etc.

    Good Jobb done Hannin, and a good example of how users and moderators can work together.

    Bosse

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 4 voices, and was last updated by  bossep 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum