-
AuthorPosts
-
gaygiorgia Friend
gaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 18, 2008 at 9:20 pm #132356hi 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 Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 18, 2008 at 10:01 pm #265914i 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 Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 19, 2008 at 6:38 am #265987with 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 19, 2008 at 9:27 am #266009Hi gaygiorgia !
What php version do you use ?Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 19, 2008 at 9:36 am #266013Hi 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.1 user says Thank You to Sherlock for this useful post
gaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 19, 2008 at 10:10 am #266018hi hanin84,
my php version on the server is:
<blockquote>
PHP Version 4.4.7System 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 phpinfogaygiorgia Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 19, 2008 at 10:17 am #266019last 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 Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 19, 2008 at 10:33 am #266024only 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 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
August 20, 2008 at 1:48 am #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 versionand 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 20, 2008 at 3:07 am #266189Hi 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 Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 20, 2008 at 7:44 am #266250okok, 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 20, 2008 at 8:43 am #266263yes,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 Friendgaygiorgia
- Join date:
- June 2008
- Posts:
- 218
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 15 times in 1 posts
August 20, 2008 at 12:21 pm #266285ok, 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 Friendbossep
- Join date:
- April 2008
- Posts:
- 262
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 50
- Thanked:
- 15 times in 3 posts
August 20, 2008 at 8:18 pm #266354Hello Hainn,
NICE fix a lot better then what I sugested! This should work for all I belive.Bosse
bossep Friendbossep
- Join date:
- April 2008
- Posts:
- 262
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 50
- Thanked:
- 15 times in 3 posts
August 20, 2008 at 8:37 pm #266359hainn,
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
-
AuthorPosts
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