TROUBLESHOOTING 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. TROUBLESHOOTING
  2. Trouble Installing MagpieRSS:
  3. 1. Fatal error: Failed opening required '/path/to/script/rss_fetch.inc'
  4. (include_path='.:/usr/local/lib/php:/usr/local/lib/php/pear')
  5. 2. Cache couldn't make dir './cache'.
  6. 3. Fatal error: Failed to load PHP's XML Extension.
  7. http://www.php.net/manual/en/ref.xml.php
  8. Trouble Using MagpieRSS
  9. 4. Warning: MagpieRSS: Failed to fetch example.com/index.rdf.
  10. (HTTP Error: Invalid protocol "")
  11. 5. Warning: MagpieRSS: Failed to parse RSS file.
  12. (not well-formed (invalid token) at line 19, column 98)
  13. 6. Warning: MagpieRSS: Failed to fetch http://localhost/rss/features.1-0.rss.
  14. (HTTP Response: HTTP/1.1 404 Not Found)
  15. If you would rather provide a custom error, see the COOKBOOK
  16. (http://magpierss.sf.net/cookbook.html) recipe 2.
  17. *************************************************************************
  18. 1. Fatal error: Failed opening required '/path/to/script/rss_fetch.inc'
  19. (include_path='.:/usr/local/lib/php:/usr/local/lib/php/pear')
  20. This could mean that:
  21. a) PHP can't find the MagpieRSS files.
  22. b) PHP found them the MagpieRSS files, but can't read them.
  23. a. Telling PHP where to look for MagpieRSS file.
  24. This might mean your PHP program can't find the MagpieRSS libraries.
  25. Magpie relies on 4 include files, rss_fetch.inc, rss_parse.inc,
  26. rss_cache.inc, rss_util.inc, and for normal use you'll need all 4 (see the
  27. cookbook for exceptions).
  28. This can be fixed by making sure the MagpieRSS files are in your include
  29. path.
  30. If you can edit your include path (for example your on a shared host) then
  31. you need to replace:
  32. require_once('rss_fetch.inc');
  33. -with-
  34. define('MAGPIE_DIR', '/path/to/magpierss/');
  35. require_once(MAGPIE_DIR.'rss_fetch.inc');
  36. b. PHP can't read the MagpieRSS files
  37. All PHP libraries need to be readable by your webserver.
  38. On Unix you can accomplish this with:
  39. chmod 755 rss_fetch.inc rss_parse.inc rss_cache.inc rss_util.inc
  40. *************************************************************************
  41. 2. Cache couldn't make dir './cache'.
  42. MagpieRSS caches the results of fetched and parsed RSS to reduce the load on
  43. both your server, and the remote server providing the RSS. It does this by
  44. writing files to a cache directory.
  45. This error means the webserver doesn't have write access to the current
  46. directory.
  47. a. Make a webserver writeable cache directory
  48. Find the webserver's group. (on my system it is 'www')
  49. mkdir ./cache
  50. chgrp www directory_name
  51. chmod g+w directory_name
  52. (this is the best, and desired solution)
  53. b. Tell MagpieRSS to create the cache directory somewhere the webserver can
  54. write to.
  55. define('MAGPIE_CACHE_DIR', '/tmp/magpierss');
  56. (this is not a great solution, and might have security considerations)
  57. c. Turn off cacheing.
  58. Magpie can work fine with cacheing, but it will be slower, and you might
  59. become a nuiance to the RSS provider, but it is an option.
  60. define('MAGPIE_CACHE_ON', 0);
  61. d. And lastly, do NOT
  62. chmod 777 ./cache
  63. Any of the above solutions are better then this.
  64. NOTE: If none of this works for you, let me know. I've got root, and a
  65. custom compiled Apache on almost any box I ever touch, so I can be a little
  66. out of touch with reality. But I won't know that if I don't feedback.
  67. ************************************************************************* 3.
  68. 3. Fatal error: Failed to load PHP's XML Extension.
  69. http://www.php.net/manual/en/ref.xml.php
  70. -or-
  71. Fatal error: Failed to create an instance of PHP's XML parser.
  72. http://www.php.net/manual/en/ref.xml.php
  73. Make sure your PHP was built with --with-xml
  74. This has been turned on by default for several versions of PHP, but it might
  75. be turned off in your build.
  76. See php.net for details on building and configuring PHP.
  77. *************************************************************************
  78. 4. Warning: MagpieRSS: Failed to fetch index.rdf.
  79. (HTTP Error: Invalid protocol "")
  80. You need to put http:// in front of your the URL to your RSS feed
  81. *************************************************************************
  82. 5. Warning: MagpieRSS: Failed to parse RSS file.
  83. (not well-formed (invalid token) at line 19, column 98)
  84. There is a problem with the RSS feed you are trying to read.
  85. MagpieRSS is an XML parser, and therefore can't parse RSS feed with invalid
  86. characters. Some RSS parser are based on regular expressions, and can
  87. parse invalid RSS but they have their own problems.
  88. You could try contacting the author of the RSS feed, and pointing them to
  89. the online RSS validator at:
  90. http://feeds.archive.org/validator/
  91. *************************************************************************
  92. 6. Warning: MagpieRSS: Failed to fetch http://example.com/index.rdf
  93. (HTTP Response: HTTP/1.1 404 Not Found)
  94. Its a 404! The RSS file ain't there.