persona non grata | Помогите настроить, не пойму, что сделать? Crontab в логе пишет следующее:
Код: PHP Warning: parse_url(http:///home/p/xxx/public_html/administrator/components/com_feedgator/cron.feedgator.php): Unable to parse URL in xxx/libraries/joomla/string/string.php on line 968
PHP Warning: Invalid argument supplied for foreach() in /home/p/xxx/public_html/libraries/joomla/string/string.php on line 970
Nothing to process. Check your settings. line 968 и 970 в string.php:
Код: // Parse the encoded URL
$encodedParts = parse_url($encodedURL);
// Now, decode each value of the resulting array
foreach ($encodedParts as $key => $value) Здесь на английском есть решение _http://joomlacode.org/gf/project/feedgator/forum/?action=ForumBrowse&forum_id=6708&_forum_action=Fo rumMessageBrowse&thread_id=21201 НО не совсем оно понятное...не в плане языка, а метода. Проблема у них на Joomla 1.7, но в принципе аналогичная. В частности один из кодеров предлагает решать так: I went through all the Joomla files that contain this "parse_url" function and of the 14, only 5 are using this JString Class. So I changed the "parse_url" function in the JString class (in string.php) to "jparse_url" (the call to parse_url() in that same function should be left unchanged so that it now calls the correct php function) - and then changed the files calling "JString: arse_url" to "JString::jparse_url" and all is well. No more file string.php line 752 errors - and URLS are getting parsed as expected for feedgator! ^Не ясно до конца как понимать call parse_url() should be left unchaged, и что с JString... Кому не лень или кто уже сталкивался с проблемой?... Последний раз редактировалось Quece; 11.06.2012 в 15:55. |