bionoren/rssFilter

Nothing is working?

Closed this issue · 1 comments

Hi, I just tried to install this project, but almoust every php script doesn't work:

  • index.php:

Crashes, because <? starts a php section. I could fix this with this diff:

diff --git a/index.php b/index.php
index 3a9e852..9adef23 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<feed xmlns="http://www.w3.org/2005/Atom">
 <?php
+    echo '<?xml version="1.0" encoding="utf-8"?>
+
+    <feed xmlns="http://www.w3.org/2005/Atom">';
+
     $path = "./";
     require_once($path."autoloader.php");
     require_once($path."functions.php");
  • admin.php:
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 59

Warning: mkdir(): Permission denied in /var/www/html/smarty/sysplugins/smarty_internal_write_file.php on line 28

Warning: rename(/tmp/wrtgyeBP6,./templates_c/eb669023950c29719bac9ad0fab891ac18fb23f9.file.admin.tpl.php): No such file or directory in /var/www/html/smarty/sysplugins/smarty_internal_write_file.php on line 48

Warning: chmod(): No such file or directory in /var/www/html/smarty/sysplugins/smarty_internal_write_file.php on line 50

Warning: include(./templates_c/eb669023950c29719bac9ad0fab891ac18fb23f9.file.admin.tpl.php): failed to open stream: No such file or directory in /var/www/html/smarty/sysplugins/smarty_internal_template.php on line 434

Warning: include(): Failed opening './templates_c/eb669023950c29719bac9ad0fab891ac18fb23f9.file.admin.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/smarty/sysplugins/smarty_internal_template.php on line 434

I tried php 5.5.30 with apache using Docker:

  • Dockerfile: FROM php:5.5.30-apache
  • docker build -t rssfilter .
  • docker run --rm -it -p 80:80 -v $PWD:/var/www/html rssfilter

I believe all opening tags have been migrated to <?. If you find any lingering uses, feel free to reopen.