owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

PHP Parse error since update to 6.0.1 #844

Closed airasim closed 9 years ago

airasim commented 9 years ago

Hello,

since updating news from 5.2.8 to 6.0.1 I get the following error when running cron.php:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/airasim/public_html/owncloud/apps/news/appinfo/application.php on line 51

Unfortunately I was not able to downgrade to 5.2.8 because it caused an "internal server error"...

Generating the search index (as explained in readme.md - https://github.com/owncloud/news/blob/master/README.md#updating-from-versions-prior-to-530) didn't help.

Cronjob is startet by the server - I tested it in detail - but the error causes that owncloud says it didn't work.

Thanks for your help airasim

PS: The problem occurs with PHP 5.5 and 5.6

airasim commented 9 years ago

Deactivating news app causes the following error:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/airasim/public_html/owncloud/apps/news/cron/updater.php on line 31

Only deleting the news folder in ownclouds app folder eliminates the errors and lets the cron.php run through with success.

BernhardPosselt commented 9 years ago

dup of #838

airasim commented 9 years ago

I don't think that it's a duplicate of #838 and https://github.com/owncloud/core/issues/18315 because I don't use encryption and the error doesn't take down owncloud. Only cronjob reports the mentioned errors and doesn't run through. The rest of my owncloud installation (~95%) works fine. Disabling news-app was possible in owncloud administration without problems, deleting database entries was not necessary.

airasim commented 9 years ago

Resetting and reinstalling the news-app didn't help anyway... (https://github.com/owncloud/news#how-do-i-reset-the-news-app)

BernhardPosselt commented 9 years ago

Read again, not related to encryption, you need a higher php version than 5.4 (5.5+) ;)

Core does not perform the check correctly when upgrading apps, that's why it breaks

airasim commented 9 years ago

As you can read in my first post, I tried it with php 5.5 and 5.6 -> always the same error. Does that mean that news 6.0.1 does not work with owncloud 8.1.1 at the moment - until https://github.com/owncloud/core/issues/18315 is solved? My workaround is the following: resetting and new istallation of news-app 5.2.8.

BernhardPosselt commented 9 years ago

Php cache maybe?

airasim commented 9 years ago

my hoster doesn't give me the possibility to use apc in php>=5.5. with apcu it's the same shit...

BernhardPosselt commented 9 years ago

Ok, well, you think you are on PHP 5.5 but you are not ;)

You can check it by placing a file with the following contents and calling it on the URL:

phpinfo();
airasim commented 9 years ago

sorry, i know what i'm doing... believe me that i'm on php 5.5 - that's what my phpinfo.php says:

PHP logo PHP Version 5.5.28

System Linux cp188.sp-server.net 2.6.32-531.17.1.lve1.2.57.el6.x86_64 #1 SMP Sat Jun 7 08:40:25 EDT 2014 x86_64 Build Date Aug 9 2015 08:24:45 Configure Command './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/opt/alt/php55' '--exec-prefix=/opt/alt/php55' '--bindir=/opt/alt/php55/usr/bin' '--sbindir=/opt/alt/php55/usr/sbin' '--sysconfdir=/opt/alt/php55/etc' '--datadir=/opt/alt/php55/usr/share' '--includedir=/opt/alt/php55/usr/include' '--libdir=/opt/alt/php55/usr/lib64' '--libexecdir=/opt/alt/php55/usr/libexec' '--localstatedir=/var' '--with-openssl=/usr' '--with-curl=/opt/alt/curlssl/usr' '--sharedstatedir=/usr/com' '--mandir=/opt/alt/php55/usr/share/man' '--infodir=/opt/alt/php55/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/alt/php55/etc' '--with-config-file-scan-dir=/opt/alt/php55/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/opt/alt/t1lib/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-pcre-regex=/opt/alt/pcre/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--with-kerberos' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/opt/alt/libxml2/usr' '--enable-xml' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mhash' '--with-readline' '--enable-dbx=shared' '--with-zlib-dir=/usr' '--enable-opcache' '--with-mssql=shared,/opt/alt/freetds/usr' '--with-interbase=shared,/opt/alt/firebird/usr' '--with-pdo-firebird=shared,/opt/alt/firebird/usr' '--with-pdo-dblib=shared,/opt/alt/freetds/usr' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-icu-dir=/opt/alt/libicu/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/opt/alt/sqlite/usr' '--enable-json=shared' '--enable-zip=shared' '--with-pspell=shared' '--enable-phar=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--enable-sqlite3=shared,/opt/alt/sqlite/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /opt/alt/php55/etc Loaded Configuration File /opt/alt/php55/etc/php.ini Scan this dir for additional .ini files /opt/alt/php55/etc/php.d Additional .ini files parsed /opt/alt/php55/etc/php.d/altphp.ini PHP API 20121113 PHP Extension 20121212 Zend Extension 220121212 Zend Extension Build API220121212,NTS PHP Extension Build API20121212,NTS Debug Build no Thread Safety disabled Zend Signal Handling disabled Zend Memory Manager enabled Zend Multibyte Support provided by mbstring IPv6 Support enabled DTrace Support disabled Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters zlib., bzip2., convert.iconv., string.rot13, string.toupper, string.tolower, string.striptags, convert., consumed, dechunk, mcrypt., mdecrypt.

Zend logo This program makes use of the Zend Scripting Language Engine: Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

Configuration apc APC support Emulated

apcu APCu Support Enabled Version 4.0.7 APCu Debugging Disabled MMAP Support Enabled MMAP File Mask no value Serialization Support php Revision $Revision: 328290 $ Build Date May 7 2015 19:20:57

Directive Local Value Master Value apc.coredump_unmap Off Off apc.enable_cli Off Off apc.enabled On On apc.entries_hint 4096 4096 apc.gc_ttl 3600 3600 apc.mmap_file_mask no value no value apc.preload_path no value no value apc.rfc1867 Off Off apc.rfc1867_freq 0 0 apc.rfc1867_name APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS apc.rfc1867prefix upload upload_ apc.rfc1867_ttl 3600 3600 apc.serializer php php apc.shm_segments 1 1 apc.shm_size 32M 32M apc.slam_defense On On apc.smart 0 0 apc.ttl 0 0 apc.use_request_time On On apc.writable /tmp /tmp

bcmath BCMath support enabled

Directive Local Value Master Value bcmath.scale 0 0

bz2 BZip2 Support Enabled Stream Wrapper support compress.bzip2:// Stream Filter support bzip2.decompress, bzip2.compress BZip2 Version 1.0.5, 10-Dec-2007

calendar Calendar support enabled

cgi-fcgi Directive Local Value Master Value cgi.check_shebang_line 1 1 cgi.discard_path 0 0 cgi.fix_pathinfo 1 1 cgi.force_redirect 1 1 cgi.nph 0 0 cgi.redirect_status_env no value no value cgi.rfc2616_headers 0 0 fastcgi.logging 1 1

Core PHP Version 5.5.28

Directive Local Value Master Value allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset utf-8 utf-8 default_mimetype text/html text/html disable_classes no value no value disable_functions no value no value display_errors Off Off display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On enable_post_data_reading On On error_append_string no value no value error_log error_log error_log error_prepend_string no value no value error_reporting 32767 32767 exit_on_timeout Off Off expose_php On On extension_dir /opt/alt/php55/usr/lib64/php/modules /opt/alt/php55/usr/lib64/php/modules file_uploads On On highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php .:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php log_errors On On log_errors_max_len 1024 1024 mail.add_x_header Off Off mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 600 600 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time -1 -1 max_input_vars 1000 1000 memory_limit 128M 128M open_basedir no value no value output_buffering 4096 4096 output_handler no value no value post_max_size 64M 64M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv Off Off report_memleaks On On report_zend_debug On On request_order no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off sys_temp_dir no value no value track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 64M 64M upload_tmp_dir no value no value user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off zend.detect_unicode On On zend.enable_gc On On zend.multibyte Off Off zend.script_encoding no value no value

ctype ctype functions enabled

curl cURL support enabled cURL Information 7.36.0 Age 3 Features AsynchDNS Yes CharConv No Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes krb4 No Largefile Yes libz Yes NTLM Yes NTLMWB Yes SPNEGO No SSL Yes SSPI No TLS-SRP No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host x86_64-redhat-linux-gnu SSL Version OpenSSL/1.0.1e ZLib Version 1.2.3 libSSH Version libssh2/1.4.3

date date/time support enabled "Olson" Timezone Database Version 2015.5 Timezone Database internal Default timezone Europe/Berlin

Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone Europe/Berlin Europe/Berlin

dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.9.1 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled

ereg Regex Library Bundled library enabled

exif EXIF Support enabled EXIF Version 1.4 $Id: 77f4630d93dc49bf34fec7c4769d100367202046 $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF

Directive Local Value Master Value exif.decode_jis_intel JIS JIS exif.decode_jis_motorola JIS JIS exif.decode_unicode_intel UCS-2LE UCS-2LE exif.decode_unicode_motorola UCS-2BE UCS-2BE exif.encode_jis no value no value exif.encode_unicode ISO-8859-15 ISO-8859-15

fileinfo fileinfo support enabled version 1.0.5

filter Input Validation and Filtering enabled Revision $Id: fbeb8bbbf6cc97f568996dac46e13e48e2907326 $

Directive Local Value Master Value filter.default unsafe_raw unsafe_raw filter.default_flags no value no value

ftp FTP support enabled

gd GD Support enabled GD Version bundled (2.1.0 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.11 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.49 WBMP Support enabled XPM Support enabled libXpm Version 30411 XBM Support enabled

Directive Local Value Master Value gd.jpeg_ignore_warning 0 0

gettext GetText Support enabled

gmp gmp support enabled GMP version 4.3.1

hash hash support enabled Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv iconv support enabled iconv implementation glibc iconv library version 2.12

Directive Local Value Master Value iconv.input_encoding ISO-8859-1 ISO-8859-1 iconv.internal_encoding ISO-8859-1 ISO-8859-1 iconv.output_encoding ISO-8859-1 ISO-8859-1

imagick imagick module enabled imagick module version 3.1.2 imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator ImageMagick version ImageMagick 6.8.8-7 Q16 x86_64 2015-01-27 http://www.imagemagick.org ImageMagick copyright Copyright (C) 1999-2014 ImageMagick Studio LLC ImageMagick release date 2015-01-27 ImageMagick number of supported formats: 215 ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JNG, JNX, JPEG, JPG, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RGF, RLA, RLE, RW2, SCR, SCT, SFW, SGI, SHTML, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV

Directive Local Value Master Value imagick.locale_fix 0 0 imagick.progress_monitor 0 0

imap IMAP c-Client Version 2007e SSL Support enabled Kerberos Support enabled

intl Internationalization support enabled version 1.1.0 ICU version 4.2.1

Directive Local Value Master Value intl.default_locale no value no value intl.error_level 0 0 intl.use_exceptions 0 0

json json support enabled json version 1.2.1

ldap LDAP Support enabled RCS Version $Id: 4db15e5bb92af06390fd31ab784837ab21a3d2ce $ Total Links 0/unlimited API Version 3001 Vendor Name OpenLDAP Vendor Version 20439 SASL Support Enabled

Directive Local Value Master Value ldap.max_links Unlimited Unlimited

libxml libXML support active libXML Compiled Version 2.9.1 libXML Loaded Version 20901 libXML streams enabled

mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled libmbfl version 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) backtrack check On Multibyte regex (oniguruma) version 5.9.2

Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.http_output_conv_mimetypes ^(text/|application/xhtml+xml) ^(text/|application/xhtml+xml) mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value

mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream

Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value

mhash MHASH support Enabled MHASH API Version Emulated Support

mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.6.23 MYSQL_MODULE_TYPE no value MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE no value MYSQL_LIBS no value

Directive Local Value Master Value mysql.allow_local_infile On On mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off

mysqli MysqlI Support enabled Client API library version 5.6.23 Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Client API header version 5.6.23 MYSQLI_SOCKET /var/lib/mysql/mysql.sock

Directive Local Value Master Value mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off

openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.1e-fips 11 Feb 2013 OpenSSL Header Version OpenSSL 1.0.1e-fips 11 Feb 2013

pcntl pcntl support enabled

pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.35 2014-04-04

Directive Local Value Master Value pcre.backtrack_limit 1000000 1000000 pcre.recursion_limit 100000 100000

PDO PDO support enabled PDO drivers mysql, sqlite

pdo_mysql PDO Driver for MySQL enabled Client API version 5.6.23

Directive Local Value Master Value pdo_mysql.default_socket /tmp/mysql.sock /tmp/mysql.sock

pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.8.5

Phar Phar: PHP Archive support enabled Phar EXT version 2.0.2 Phar API version 1.1.1 SVN revision $Id: 4b9a493926fec4e6d913722b7a94602c7850c27e $ Phar-based phar archives enabled Tar-based phar archives enabled ZIP-based phar archives enabled gzip compression enabled bzip2 compression enabled OpenSSL support enabled

Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.

Directive Local Value Master Value phar.cache_list no value no value phar.readonly On On phar.require_hash On On

posix Revision $Id: 5d20de77687b7d961b15450873fa23b9e64a136a $

readline Readline Support enabled Readline library 6.0

Directive Local Value Master Value cli.pager no value no value cli.prompt \b > \b >

Reflection Reflection enabled Version $Id: dc76d2fe0f3e9c327c1d4ca617d94e26c7fae98d $

session Session Support enabled Registered save handlers files user Registered serializer handlers php_serialize php php_binary wddx

Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /tmp /tmp session.serialize_handler php php session.upload_progress.cleanup On On session.upload_progress.enabled On On session.upload_progress.freq 1% 1% session.upload_progress.min_freq 1 1 session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix uploadprogress uploadprogress session.use_cookies On On session.use_only_cookies On On session.use_strict_mode Off Off session.use_trans_sid 0 0

shmop shmop support enabled

SimpleXML Simplexml support enabled Revision $Id: 6b8e23a01a85046737ef7d31346da5164505c179 $ Schema support enabled

soap Soap Client enabled Soap Server enabled

Directive Local Value Master Value soap.wsdl_cache 1 1 soap.wsdl_cache_dir /tmp /tmp soap.wsdl_cache_enabled 1 1 soap.wsdl_cache_limit 5 5 soap.wsdl_cache_ttl 86400 86400

SPL SPL support enabled Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3 SQLite3 support enabled SQLite3 module version 0.7-dev SQLite Library 3.8.10.2

Directive Local Value Master Value sqlite3.extension_dir no value no value

standard Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 from no value no value url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry user_agent no value no value

tidy Tidy support enabled libTidy Release 14 June 2007 Extension Version 2.0 ($Id: e066a98a414c7f79f89f697c19c4336c61bc617b $)

Directive Local Value Master Value tidy.clean_output no value no value tidy.default_config no value no value

tokenizer Tokenizer Support enabled

uploadprogress uploadprogress support enabled Version 1.0.3.1

Directive Local Value Master Value uploadprogress.file.contents_template /tmp/uploadcontents%s /tmp/uploadcontents%s uploadprogress.file.filenametemplate /tmp/upt%s.txt /tmp/upt_%s.txt uploadprogress.get_contents 0 0

wddx WDDX Support enabled WDDX Session Serializer enabled

xml XML Support active XML Namespace Support active libxml2 Version 2.9.1

xmlreader XMLReader enabled

xmlrpc core library version xmlrpc-epi v. 0.51 php extension version 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com

xmlwriter XMLWriter enabled

xsl XSL enabled libxslt Version 1.1.26 libxslt compiled against libxml Version 2.7.6 EXSLT enabled libexslt Version 1.1.26

zip Zip enabled Extension Version $Id: c268059b54296d6ea21e8b1178f40a28a88f0024 $ Zip version 1.11.0 Libzip version 0.10.1

zlib ZLib Support enabled Stream Wrapper compress.zlib:// Stream Filter zlib.inflate, zlib.deflate Compiled Version 1.2.3 Linked Version 1.2.3

Directive Local Value Master Value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value

Additional Modules Module Name

Environment Variable Value PATH /usr/local/bin:/usr/bin:/bin PWD /usr/local/cpanel/cgi-sys SHLVL 0

PHP Variables Variable Value _REQUEST["roundcube_sessid"] tfqnd5u6ubsn2st7p1m93p9bc2 _REQUEST["language"] de_DE _REQUEST["roundcube_sessauth"] Scafdfae6555ab134d6e050e92527e74800c4e255 _COOKIE["roundcube_sessid"] tfqnd5u6ubsn2st7p1m93p9bc2 _COOKIE["language"] de_DE _COOKIE["roundcube_sessauth"] Scafdfae6555ab134d6e050e92527e74800c4e255 _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin _SERVER["PWD"] /usr/local/cpanel/cgi-sys _SERVER["SHLVL"] 0 _SERVER["SCRIPT_NAME"] /phpinfo.php _SERVER["REQUEST_URI"] /phpinfo.php _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_METHOD"] GET _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["REMOTE_PORT"] 57725 _SERVER["SCRIPT_FILENAME"] /home/airasim/public_html/phpinfo.php _SERVER["SERVER_ADMIN"] webmaster@airasim.de _SERVER["CONTEXT_DOCUMENT_ROOT"] /home/airasim/public_html _SERVER["CONTEXT_PREFIX"] no value _SERVER["REQUEST_SCHEME"] https _SERVER["DOCUMENT_ROOT"] /home/airasim/public_html _SERVER["REMOTE_ADDR"] 95.90.195.96 _SERVER["SERVER_PORT"] 443 _SERVER["SERVER_ADDR"] 195.30.107.188 _SERVER["SERVER_NAME"] airasim.de _SERVER["SERVER_SOFTWARE"] Apache _SERVER["SERVER_SIGNATURE"] no value _SERVER["LD_LIBRARY_PATH"] /usr/local/apache/lib _SERVER["HTTP_CONNECTION"] close _SERVER["HTTP_X_CLICKONCESUPPORT"](.NET CLR 3.5.30729; .NET4.0E) _SERVER["HTTP_COOKIE"] roundcube_sessid=tfqnd5u6ubsn2st7p1m93p9bc2; language=de_DE; roundcube_sessauth=Scafdfae6555ab134d6e050e92527e74800c4e255 _SERVER["HTTP_DNT"] 1 _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _SERVER["HTTP_ACCEPT_LANGUAGE"] de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3 _SERVER["HTTPACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8 _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 _SERVER["HTTP_HOST"] airasim.de _SERVER["SSL_TLS_SNI"] airasim.de _SERVER["HTTPS"] on _SERVER["UNIQUE_ID"] Vd2c3cMea7wAAuzfRAQAAABJ _SERVER["FCGI_ROLE"] RESPONDER _SERVER["PHP_SELF"] /phpinfo.php _SERVER["REQUEST_TIME_FLOAT"] 1440586973.0951 _SERVER["REQUEST_TIME"] 1440586973 _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin _ENV["PWD"] /usr/local/cpanel/cgi-sys _ENV["SHLVL"] 0 _ENV["SCRIPT_NAME"] /phpinfo.php _ENV["REQUEST_URI"] /phpinfo.php _ENV["QUERY_STRING"] no value _ENV["REQUEST_METHOD"] GET _ENV["SERVER_PROTOCOL"] HTTP/1.1 _ENV["GATEWAY_INTERFACE"] CGI/1.1 _ENV["REMOTE_PORT"] 57725 _ENV["SCRIPT_FILENAME"] /home/airasim/public_html/phpinfo.php _ENV["SERVER_ADMIN"] webmaster@airasim.de _ENV["CONTEXT_DOCUMENT_ROOT"] /home/airasim/public_html _ENV["CONTEXT_PREFIX"] no value _ENV["REQUEST_SCHEME"] https _ENV["DOCUMENT_ROOT"] /home/airasim/public_html _ENV["REMOTE_ADDR"] 95.90.195.96 _ENV["SERVER_PORT"] 443 _ENV["SERVER_ADDR"] 195.30.107.188 _ENV["SERVER_NAME"] airasim.de _ENV["SERVER_SOFTWARE"] Apache _ENV["SERVER_SIGNATURE"] no value _ENV["LD_LIBRARY_PATH"] /usr/local/apache/lib _ENV["HTTP_CONNECTION"] close _ENV["HTTP_X_CLICKONCESUPPORT"](.NET CLR 3.5.30729; .NET4.0E) _ENV["HTTP_COOKIE"] roundcube_sessid=tfqnd5u6ubsn2st7p1m93p9bc2; language=de_DE; roundcube_sessauth=Scafdfae6555ab134d6e050e92527e74800c4e255 _ENV["HTTP_DNT"] 1 _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate _ENV["HTTP_ACCEPT_LANGUAGE"] de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3 _ENV["HTTPACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8 _ENV["HTTP_USER_AGENT"] Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 _ENV["HTTP_HOST"] airasim.de _ENV["SSL_TLS_SNI"] airasim.de _ENV["HTTPS"] on _ENV["UNIQUE_ID"] Vd2c3cMea7wAAuzfRAQAAABJ _ENV["FCGI_ROLE"] RESPONDER _ENV["PHP_SELF"] /phpinfo.php _ENV["REQUEST_TIME_FLOAT"] 1440586973.0951 _ENV["REQUEST_TIME"] 1440586973

PHP Credits PHP Group Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski

Language Design & Concept Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger

PHP Authors Contribution Authors Zend Scripting Language Engine Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov Extension Module API Andi Gutmans, Zeev Suraski, Andrei Zmievski UNIX Build and Modularization Stig Bakken, Sascha Schumann, Jani Taskinen Windows Port Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye Server API (SAPI) Abstraction Layer Andi Gutmans, Shane Caraveo, Zeev Suraski Streams Abstraction Layer Wez Furlong, Sara Golemon PHP Data Objects Layer Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky Output Handler Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner

SAPI Modules Contribution Authors AOLserver Sascha Schumann Apache 1.3 (apache_hooks) Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar, George Schlossnagle, Lukas Schroeder Apache 1.3 Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar Apache 2.0 Filter Sascha Schumann, Aaron Bannert Apache 2.0 Handler Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code) Caudium / Roxen David Hedbor CGI / FastCGI Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui Continuity Alex Leigh (based on nsapi code) Embed Edin Kadribasic FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet ISAPI Andi Gutmans, Zeev Suraski litespeed George Wang NSAPI Jayakumar Muthukumarasamy, Uwe Schindler phttpd Thies C. Arntzen pi3web Holger Zimmermann Sendmail Milter Harald Radi thttpd Sascha Schumann tux Sascha Schumann WebJames Alex Waugh

Module Authors Module Authors BC Math Andi Gutmans Bzip2 Sterling Hughes Calendar Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong COM and .Net Wez Furlong ctype Hartmut Holzgraefe cURL Sterling Hughes Date/Time Support Derick Rethans DB-LIB (MS SQL, Sybase) Wez Furlong, Frank M. Kromann DBA Sascha Schumann, Marcus Boerger DOM Christian Stocker, Rob Richards, Marcus Boerger enchant Pierre-Alain Joye, Ilia Alshanetsky ereg Rasmus Lerdorf, Jim Winstead, Jaakko Hyvätti EXIF Rasmus Lerdorf, Marcus Boerger fileinfo Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans Firebird/InterBase driver for PDO Ard Biesheuvel FTP Stefan Esser, Andrew Skalski GD imaging Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger GetText Alex Plotnick GNU GMP support Stanislav Malyshev Iconv Rui Hirokawa, Stig Bakken, Moriyoshi Koizumi IMAP Rex Logan, Mark Musone, Brian Wang, Kaj-Michael Lang, Antoni Pamies Olive, Rasmus Lerdorf, Andrew Skalski, Chuck Hagenbuch, Daniel R Kalowsky Input Filter Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky InterBase Jouni Ahto, Andrew Avdeev, Ard Biesheuvel Internationalization Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar JSON Omar Kilani, Scott MacVicar LDAP Amitay Isaacs, Eric Warnke, Rasmus Lerdorf, Gerrit Thomson, Stig Venaas LIBXML Christian Stocker, Rob Richards, Marcus Boerger, Wez Furlong, Shane Caraveo mcrypt Sascha Schumann, Derick Rethans MS SQL Frank M. Kromann Multibyte String Functions Tsukada Takuya, Rui Hirokawa MySQL driver for PDO George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter MySQL Zeev Suraski, Zak Greant, Georg Richter, Andrey Hristov MySQLi Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel MySQLnd Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter OCI8 Stig Bakken, Thies C. Arntzen, Andy Sautins, David Benson, Maxim Maletsky, Harald Radi, Antony Dovgal, Andi Gutmans, Wez Furlong, Christopher Jones, Oracle Corporation ODBC driver for PDO Wez Furlong ODBC Stig Bakken, Andreas Karajannis, Frank M. Kromann, Daniel R. Kalowsky OpenSSL Stig Venaas, Wez Furlong, Sascha Kettler, Scott MacVicar Oracle (OCI) driver for PDO Wez Furlong pcntl Jason Greene, Arnaud Le Blanc Perl Compatible Regexps Andrei Zmievski PHP Archive Gregory Beaver, Marcus Boerger PHP Data Objects Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky PHP hash Sara Golemon, Rasmus Lerdorf, Stefan Esser, Michael Wallner, Scott MacVicar Posix Kristian Koehntopp PostgreSQL driver for PDO Edin Kadribasic, Ilia Alshanetsky PostgreSQL Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne Pspell Vlad Krupin Readline Thies C. Arntzen Recode Kristian Koehntopp Reflection Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter Sessions Sascha Schumann, Andrei Zmievski Shared Memory Operations Slava Poliakov, Ilia Alshanetsky SimpleXML Sterling Hughes, Marcus Boerger, Rob Richards SNMP Rasmus Lerdorf, Harrie Hazewinkel, Mike Jackson, Steven Lawrance, Johann Hanne, Boris Lytochkin SOAP Brad Lafountain, Shane Caraveo, Dmitry Stogov Sockets Chris Vandomelen, Sterling Hughes, Daniel Beulshausen, Jason Greene SPL Marcus Boerger, Etienne Kneuss SQLite 3.x driver for PDO Wez Furlong SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar Sybase-CT Zeev Suraski, Tom May, Timm Friebe System V Message based IPC Wez Furlong System V Semaphores Tom May System V Shared Memory Christian Cartus tidy John Coggeshall, Ilia Alshanetsky tokenizer Andrei Zmievski, Johannes Schlueter WDDX Andrei Zmievski XML Stig Bakken, Thies C. Arntzen, Sterling Hughes XMLReader Rob Richards xmlrpc Dan Libby XMLWriter Rob Richards, Pierre-Alain Joye XSL Christian Stocker, Rob Richards Zip Pierre-Alain Joye Zlib Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti, Michael Wallner

PHP Documentation Authors Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Georg Richter, Damien Seguy, Jakub Vrana Editor Philip Olson User Note Maintainers Daniel P. Brown, Thiago Henrique Pojda Other Contributors Previously active authors, editors and other contributors are listed in the manual.

PHP Quality Assurance Team Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Jani Taskinen, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra

Websites and Infrastructure team PHP Websites Team Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen Event Maintainers Damien Seguy, Daniel P. Brown Network Infrastructure Daniel P. Brown Windows Infrastructure Alex Schoenmaker

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

BernhardPosselt commented 9 years ago

Ok, let me explain the error message you've posted then:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/airasim/public_html/owncloud/apps/news/appinfo/application.php on line 51

This is the line: https://github.com/owncloud/news/blob/master/appinfo/application.php#L51

        $container->registerService(\OCA\News\Db\ItemMapper::class, function($c) {

The parser stumbles over the ::class attribute which was not present prior to 5.5 see http://php.net/manual/en/migration55.new-features.php#migration55.new-features.class-name

BernhardPosselt commented 9 years ago

Furthermore this line is covered by integration tests on PHP 5.5, see https://travis-ci.org/owncloud/news

So basically: Either your PHP is totally broken or you don't run 5.5

airasim commented 9 years ago

Hmm, you could be right. The example script from php.net doesn't bring the expected output on my server. I will check it with my hoster and post again what the problem was. Thank you for your time and sorry for annoying.

BernhardPosselt commented 9 years ago

NP, there are some really shitty to debug issues ;)

shtrom commented 9 years ago

Quick fix for those who cannot upgrade to php-5.5:

sed -i 's#\\\([\A-Za-z]*\)::class#"\1"#' appinfo/application.php
sed -i 's#AdminController::class#OCA\\News\\Controller\\AdminController#' admin/admin.php

Seems to work for me, except that it doesn't detect webcron. Anyway, it's just a workaround until an upgrade. Don't expect for it to hold for too long.

BernhardPosselt commented 9 years ago

@shtrom good idea, however this is incomplete:

bernhard@desktop ~/programming/core/apps/news (master) $ grep -r . -e ::class
./appinfo/register_command.php:$newsCmd = $newsContainer->query(GenerateSearchIndices::class);
./appinfo/register_command.php:$verifyCmd = $newsContainer->query(VerifyInstall::class);
./appinfo/application.php:        $container->registerService(\OCA\News\Db\ItemMapper::class, function($c) {
./appinfo/application.php:            return $c->query(\OCA\News\Db\MapperFactory::class)->getItemMapper(
./appinfo/application.php:                $c->query(\OCP\IDBConnection::class)
./appinfo/application.php:        $container->registerService(\OCA\News\Config\AppConfig::class, function($c) {
./appinfo/application.php:                $c->query(\OCP\INavigationManager::class),
./appinfo/application.php:                $c->query(\OCP\IURLGenerator::class)
./appinfo/application.php:            return $c->query(\OCP\IConfig::class)->getSystemValue('dbtype');
./appinfo/application.php:            $fs = $c->query(\OCP\Files\IRootFolder::class);
./appinfo/application.php:        $container->registerService(\OCA\News\Config\Config::class, function($c) {
./appinfo/application.php:                $c->query(\OCP\ILogger::class),
./appinfo/application.php:        $container->registerService(\HTMLPurifier::class, function($c) {
./appinfo/application.php:            $directory = $c->query(\OCP\IConfig::class)
./appinfo/application.php:        $container->registerService(\PicoFeed\Config\Config::class, function($c) {
./appinfo/application.php:            $config = $c->query(\OCA\News\Config\Config::class);
./appinfo/application.php:            $appConfig = $c->query(\OCA\News\Config\AppConfig::class);
./appinfo/application.php:            $proxy =  $c->query(\OCA\News\Utility\ProxyConfigParser::class);
./appinfo/application.php:        $container->registerService(\OCA\News\Fetcher\Fetcher::class, function($c) {
./appinfo/application.php:                $c->query(\OCA\News\Fetcher\YoutubeFetcher::class)
./appinfo/application.php:                $c->query(\OCA\News\Fetcher\FeedFetcher::class)
./appinfo/application.php:        $container->registerService(\OCA\News\Explore\RecommendedSites::class,
./appinfo/application.php:            ->query(\OCA\News\Config\AppConfig::class)
./hooks/user.php:        $container->query(ItemService::class)->deleteUser($userId);
./hooks/user.php:        $container->query(FeedService::class)->deleteUser($userId);
./hooks/user.php:        $container->query(FolderService::class)->deleteUser($userId);
./tests/integration/bootstrap.php:        $this->itemMapper = $this->container->query(ItemMapper::class);
./tests/integration/bootstrap.php:        $this->feedMapper = $this->container->query(FeedMapper::class);
./tests/integration/bootstrap.php:        $this->folderMapper = $this->container->query(FolderMapper::class);
./tests/integration/bootstrap.php:        $db = $this->container->query(IDb::class);
./tests/integration/bootstrap.php:        $userManager = $this->container->query(IUserManager::class);
./tests/integration/bootstrap.php:        $session = $this->container->query(IUserSession::class);
./db/itemmapper.php:        parent::__construct($db, 'news_items', Item::class);
./db/feedmapper.php:        parent::__construct($db, 'news_feeds', Feed::class);
./db/foldermapper.php:        parent::__construct($db, 'news_folders', Folder::class);
./cron/updater.php:        if ($container->query(Config::class)->getUseCronUpdates()) {
./cron/updater.php:            $container->query(UpdaterService::class)->update();
./cron/updater.php:            $container->query(UpdaterService::class)->beforeUpdate();
./cron/updater.php:            $container->query(UpdaterService::class)->afterUpdate();
./admin/admin.php:$response = $container->query(AdminController::class)->index();

In addition, some classes use relative imports, however for the query method you need the full import. Furthermore you must not prepend a slash in the string.

These are the current 5.5 changes, I can't guarantee however that there won't be additional 5.5 features in the future apart from the class static attribute.

1337sup3rh4x0r commented 9 years ago

thank you for the fix @shtrom, this worked for me and gave me a working news app back.

Before that change I would just get a blank page.

I have owncloud installed on a openmediavault server where php5.4 is needed for other things so I cannot update to 5.5. And today unfortunately I updated to news 6.0.1 which broke my owncloud. Restoring the old 5.2.6 app folder I had running so far from a backup wouldn't load my articles somehow.

So your change worked for me. Unfortunately I still get a blank page when I try to open the admin page now. The log shows this error:

Exception: {"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"news.page.index\" as such route does not exist.","Code":0,"Trace":"#0 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/router.php(306): Symfony\\Component\\Routing\\Generator\\UrlGenerator->generate('news.page.index', Array, false)\n#1 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/urlgenerator.php(65): OC\\Route\\Router->generate('news.page.index', Array)\n#2 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/apps\/news\/config\/appconfig.php(110): OC\\URLGenerator->linkToRoute('news.page.index')\n#3 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/navigationmanager.php(63): OCA\\News\\Config\\AppConfig->OCA\\News\\Config\\{closure}()\n#4 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/app.php(395): OC\\NavigationManager->getAll()\n#5 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/settings\/ajax\/navigationdetect.php(29): OC_App::getAppNavigationEntries('news')\n#6 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/media\/da151e00...')\n#7 [internal function]: __lambda_func(Array)\n#8 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/router.php(274): call_user_func('\\x00lambda_218', Array)\n#9 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/base.php(873): OC\\Route\\Router->match('\/settings\/ajax\/...')\n#10 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/index.php(40): OC::handleRequest()\n#11 {main}","File":"\/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/3rdparty\/symfony\/routing\/Symfony\/Component\/Routing\/Generator\/UrlGenerator.php","Line":134} 

Am I correctly assuming that I would also have to make some adjustments in files other than the two you mentioned? Could you tell me which?

Alternatively, how can I get back to the old 5.2.6 version? Simply restoring the folder doesn't do the job as the articles won't load. Seems like the upgrade process changed the db structure or something? Is there a way back?

1337sup3rh4x0r commented 9 years ago

Another idea: I just noticed that for the admin account, where I don't have any news feeds added, the app loads when restored 5.2.6.

So can I somehow just delete all news related data for my main user so that it will be empty like for the admin and load? Then I could do an import of the ompl file and all should be like before.

I just don't know how to delete all news related data of my main user. Can someone help me with this step? :)

airasim commented 9 years ago

Hello 1337sup3rh4x0r,

I think you shuld reset your news installation (by following all this steps: https://github.com/owncloud/news#how-do-i-reset-the-news-app), reinstalling 5.2.x and then reimporting your last database backup (from before the update to 6.0.1). If you you don't have a db backup and only a few feeds (and no saved articles) you can copy the feeds links from the new database and paste them into your new installation. Only deleting the folders (and not the db entries) before reinstalling doesn't work!

Am 30. August 2015 18:11:29 MESZ, schrieb 1337sup3rh4x0r notifications@github.com:

thank you for the fix @shtrom, this worked for me and gave me a working news app back.

Before that change I would just get a blank page.

I have owncloud installed on a openmediavault server where php5.4 is needed for other things so I cannot update to 5.5. And today unfortunately I updated to news 6.0.1 which broke my owncloud. Restoring the old 5.2.6 app folder I had running so far from a backup wouldn't load my articles somehow.

So your change worked for me. Unfortunately I still get a blank page when I try to open the admin page now. The log shows this error:

Exception: {"Exception":"Symfony\Component\Routing\Exception\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"news.page.index\" as such route does not exist.","Code":0,"Trace":"#0 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/router.php(306): Symfony\Component\Routing\Generator\UrlGenerator->generate('news.page.index', Array, false)\n#1 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/urlgenerator.php(65): OC\Route\Router->generate('news.page.index', Array)\n#2 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/apps\/news\/config\/appconfig.php(110): OC\URLGenerator->linkToRoute('news.page.index')\n#3 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/navigationmanager.php(63): OCA\News\Config\AppConfig->OCA\News\Config{closure}()\n#4 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/app.php(395): OC\NavigationMa nager->getAll()\n#5 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/settings\/ajax\/navigationdetect.php(29): OC_App::getAppNavigationEntries('news')\n#6 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/route.php(154) : runtime-created function(1): require_once('\/media\/da151e00...')\n#7

\/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/private\/route\/router.php(274): call_user_func('\x00lambda_218', Array)\n#9 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/lib\/base.php(873): OC\Route\Router->match('\/settings\/ajax\/...')\n#10 \/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/index.php(40): OC::handleRequest()\n#11 {main}","File":"\/media\/da151e00-ebb1-4f57-ae22-7cbf0f7a9e8d\/www_owncloud\/3rdparty\/symfony\/routing\/Symfony\/Component\/Routing\/Generator\/UrlGenerator.php","Line":134}

Am I correctly assuming that I would also have to make some adjustments in files other than the two you mentioned? Could you tell me which?

Alternatively, how can I get back to the old 5.2.4 version? Simply restoring the folder doesn't do the job as the articles won't load. Seems like the upgrade process changed the db structure or something? Is there a way back?


Reply to this email directly or view it on GitHub: https://github.com/owncloud/news/issues/844#issuecomment-136156468

BernhardPosselt commented 9 years ago

The thing is that version 6 added a new database column in the oc_news_feeds table called full_text_enabled. Now if you downgrade by copying stuff back, you forgot the database, that's why it's not working. Delete that column and it will work again

Just to reiterate: the upgrade should have never happened, you were only able to upgrade on your unsupported installation because of a bug in core

airasim commented 9 years ago

What is the last version of news that runs with php 5.4 and where can it be downloaded?

BernhardPosselt commented 9 years ago

Anything prior to 6 https://github.com/owncloud/news/releases

1337sup3rh4x0r commented 9 years ago

Thank you @Raydiation, this worked fine!

GIT-STATA commented 8 years ago

Did you find any solution for fixing this problem?

(ownCloud 9.0.1 / PHP Version 5.6.5)

I do have to deactivate the news app every time I check for updates via the command

sudo -u apache php occ upgrade

furthermore

sudo -u apache php -f /var/www/html/owncloud/cron.php

is creating a lot of errors...

I really face those problems only when news is installed and activated! Any ideas are very welcome. Thanks all of you!!!

P.S.: ERRORS WHEN NEWS is disabaled and running cron.php

"2016-04-15T10:30:01+00:00","method":"--","url":"--","user":"--"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/js-url\/url.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/es6-shim\/es6-shim.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/angular\/angular.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/angular-animate\/angular-animate.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/angular-route\/angular-route.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/angular-sanitize\/angular-sanitize.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/momentjs\/min\/moment-with-locales.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/vendor\/masonry\/dist\/masonry.pkgd.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"VxDCr8pqEqZc4wYYj5K1KQAAAAc","remoteAddr":"::1","app":"news","message":"Could not find resource file \"\/owncloud\/apps\/news\/js\/build\/app.min.js\"","level":3,"time":"2016-04-15T10:30:07+00:00","method":"GET","url":"\/owncloud\/apps\/news\/","user":"admin"} {"reqId":"SvSV8XXLLjgP4PAgXLUT","remoteAddr":"","app":"PHP","message":"syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' at \/var\/www\/html\/owncloud\/apps\/news\/appinfo\/application.php#56","level":3,"time":"2016-04-15T10:30:37+00:00","method":"--","url":"--","user":"--"}

BernhardPosselt commented 8 years ago

Did you download the compiled package?

BernhardPosselt commented 8 years ago

You need to build it yourself if you download the source package

GIT-STATA commented 8 years ago

I used the 'app store version'... news.tar.gz

I use PHP 5.6.5 by Software Collections (www.softwarecollections.org).

Dependencies should be all fine. I checked e.g.

php -i | grep libxml

libxml Version => 2.9.1 php-curl (/etc/opt/rh/rh-php56/php.d/20-simplexml.ini) iconv ( iconv library version => 2.17 ) SimpleXML (/etc/opt/rh/rh-php56/php.d/20-simplexml.ini)

What elso to do?

Thanks to all of you!!!

BernhardPosselt commented 8 years ago

Ah, can you download it again? There was a build problem that uploaded a broken version and was fixed this morning ;)

BernhardPosselt commented 8 years ago

See #973

GIT-STATA commented 8 years ago

Now only following error left:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/owncloud/apps/news/appinfo/application.php on line 56

BernhardPosselt commented 8 years ago

I don't get the error with 5.6, are you sure the file is up to date? Also please open a new issue ;)

GIT-STATA commented 8 years ago

Allright!

Thanks!!!! Very very much!!!

Am 15.04.2016 um 15:20 schrieb Bernhard Posselt:

I don't get the error with 5.6, are you sure the file is up to date? Also please open a new issue ;)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/owncloud/news/issues/844#issuecomment-210461812