При показе компонента выдаёт ошибки Warning: file_get_contents(http://xml

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1822 by Пётр Кропоткин
При показе компонента выдаёт ошибки

Warning: file_get_contents(xml.weather.co.ua/1.2/forecast/?dayf=5&lang=ru) [function.file-get-contents]: failed to open stream: No such file or directory in /www/components/com_jlweather/models/jlweather.php on line 27

Warning: Invalid argument supplied for foreach() in /www/components/com_jlweather/models/jlweather.php on line 39

На локалхосте только в 39 строке
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #1823 by JoomLine
мы не поддерживаем расширения на локальных серверах.
Из ошибки следует что компонент не может подключиться к удаленному серверу.
Либо у вас локальный сервер не позволяет удаленные подключения... либо у вас указан не существующий город.
Last edit: 12 years 9 months ago by JoomLine.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1824 by Пётр Кропоткин
ошибки возникают непосредственно на рабочем сайте, в 28 и 39 строке, на локалхосте только в 39 строке.
города указаны по умолчанию в компоненте 692#Кемерово,23#Киев

Joomla 2.5, компонент 2.0 от March, 2011
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1825 by Пётр Кропоткин
на локалхосте убрал ",23#Киев" оставил только "692#Кемерово" и всё заработало, возможно дело в разделителе?

но на рабочем сайте всёравно всё те же ошибки в 27 и 39 строке
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1826 by Пётр Кропоткин
на локалхосте всё заработало в том числе и несколько городов теперь показывает (не знаю почему заработало), но вот рабочий сайт по прежнему выдаёт те же ошибки 27 и 39
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #1827 by JoomLine
очистите кеш... Скорей всего это поможет. А так же дайте ссылку на ваш сайт чтоб посмотреть что там такое тварится.
Last edit: 12 years 9 months ago by JoomLine.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1828 by Пётр Кропоткин
кэширование на сайте отключено, вот пример online9.ru/multserialy.html
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1829 by Пётр Кропоткин
вот информация о сервере

Платформа, на которой работает PHP Linux u10102 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686
Версия базы данных 5.0.51a-24+lenny2
Кодировка базы данных utf8_general_ci
Версия PHP 5.2.5
Веб-сервер Apache/2.2.9 (Debian)
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #1830 by JoomLine
и что? что отключено компонент все равно кешируется на 6 часов по умолчанию если ему не удалось спарсить корректно то он и закешировал что не может получить данные... в общем проблема только в том что данные от сервера не получены.
Last edit: 12 years 9 months ago by JoomLine.

Please Log in or Create an account to join the conversation.

  • Пётр Кропоткин
  • Пётр Кропоткин's Avatar Topic Author
  • Visitor
12 years 9 months ago - 12 years 9 months ago #1831 by Пётр Кропоткин
Дело не в кеше, я его чистил. Так же я попробывал поставить компонент 1.1 для Джумлы 1.5 на сателлите на том же сервере, те же ошибки stroim-domm.ru/index.php?option=com_jlwe...ut=default2&Itemid=7

А на сателлите расположенном на другом сервере той же хостинговой компании всё работает отлично dizajn-interyera.ru/index.php?option=com...ther&cid=19&Itemid=8

Значит проблема именно в сервере, может на ошибки сказывается то что на первом сервере более старые версии Апача, МайСКЛа и ПХП и из-за этого компонент не работает или может нужно на сервере какие то настройки проверить?
Last edit: 12 years 9 months ago by Пётр Кропоткин.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • google seo
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell into the lake. The monkey couldn't swim and he shouted. A rabbit came and he jumped into the lake. The abbit swam to the monkey but did not help him. Both of them shouted forhelp. Luckily, a giraffe came along. He was very tall. He helped the rabbit and the monkey.  
    • In Component / JL TV
    • newtopbestblogger
    • The salmon roe warship is particularly alluring. There are such a lot of round and plump salmon roes, which are "crispy" in the mouth and have an top notch taste. Don’t suppose that the meals that simplest fees 20 yuan is not of excessive exceptional.
    • In Component / JL TV
    • firstwriteshop
    • The frame does not synthesize nutrition B12 on its personal. The main assets of diet B12 are animal proteins, such as clams, oatmeal, salmon, milk, yogurt, ham, eggs, bird, cereals, soy milk, almond milk, etc.
    • In Component / JL TV
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.