| :: |
| Author |
Message |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: Thu Mar 22, 2007 4:23 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
Grr.
Please try the following, open mx_ggsitemaps/utf/utf_tools.php and first delete :
| Code: | // First, try iconv()
if (function_exists('iconv'))
{
$ret = @iconv($encoding, 'utf-8', $string);
if (isset($ret[0]))
{
return $ret;
}
} |
And try the output, cache cleared.
If not enough, try deleteing :
| Code: |
// Try the mb_string extension
if (function_exists('mb_convert_encoding'))
{
$ret = @mb_convert_encoding($string, 'utf-8', $encoding);
if (isset($ret[0]))
{
return $ret;
}
} |
And then if still not enough, try deleting :
| Code: | // Try the recode extension
if (function_exists('recode_string'))
{
$ret = @recode_string($encoding . '..utf-8', $string);
if (isset($ret[0]))
{
return $ret;
}
} |
Doing this will just exclude the possible php conversion method available before the manual conversion is used.
If you've deleted all the suggested codes and it still fails, we'll have to try something different, could just be to re use the older method, we'll see.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Fri Mar 23, 2007 1:03 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
when i deleted first block nothing changed but the second i have this error
forum/mx_ggsitemaps/includes/utf/utf_tools.php on line 474 |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Fri Mar 23, 2007 2:21 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
| dcz wrote: | | What is the error message (if any) ? |
i cant understand  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: Fri Mar 23, 2007 5:13 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
| mhmdkhamis wrote: | when i deleted first block nothing changed but the second i have this error
forum/mx_ggsitemaps/includes/utf/utf_tools.php on line 474 |
I looks like you did not post the error itself, only it's location.
There shouldn't be any if you exactly delete as I suggested, one block at a time, with test in between.
I'm sorry, I do not have any windows 1256 test board.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Fri Mar 23, 2007 5:56 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
sorry dcz
this message happen when i delete
| Code: |
// Try the mb_string extension
if (function_exists('mb_convert_encoding'))
{
$ret = @mb_convert_encoding($string, 'utf-8', $encoding);
if (isset($ret[0]))
{
return $ret;
}
}
|
and sorry aagain i i not understand you good
but please dont think me my stuiped  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: Mon Mar 26, 2007 10:07 am Post subject: Re: after update gym rc3 problem with rss |
|
|
Oh but I see, this is a bug
Please open :
| Code: |
mx_ggsitemaps/includes/ggs_functions.php |
Find :
| Code: | | $this->output_data['data'] = utf8_recode($this->output_data['data'], $encoding); |
Replace with :
| Code: | | $this->output_data['data'] = utf8_recode($this->output_data['data'], $encoding, $this); |
open :
| Code: | | mx_ggsitemaps/includes/utf/utf_tools.php |
Find :
| Code: | function utf8_recode($string, $encoding = 'iso-8859-1')
{
global $gym_sitemaps;
|
Replace with :
| Code: |
function utf8_recode($string, $encoding = 'iso-8859-1', $gym_sitemaps)
{
|
Find :
| Code: |
if (!file_exists($gym_sitemaps->path_config['module_path'] . 'utf/data/recode_basic.' . $phpEx)) |
Replace with :
| Code: | | if (!file_exists($gym_sitemaps->path_config['module_path'] . 'includes/utf/data/recode_basic.' . $phpEx)) |
You should now be able to test what I first suggested, and don't worry, nobody is stupid here
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: Mon Mar 26, 2007 10:41 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
Great
I'll put together something to simplify these tests and settings while I'll fix this bug.
The idea is to handle as many char-set and server settings as possible.
This is phpBB3 conversion method here, so it is likely that you'll run into the same in the end small trouble (without the bug, only the code deleting) when converting from your char-set when you'll upgrade (if you do).
So it's something to remember, just in case
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Mon Mar 26, 2007 11:18 pm Post subject: Re: after update gym rc3 problem with rss |
|
|
ok dcz
i am wait phpbb3  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
|
|