flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.35k stars 834 forks source link

System is not defined #1132

Closed Rudloff closed 7 years ago

Rudloff commented 7 years ago

Hello,

I get this error when browsing to the index: capture d ecran - 2017-02-17 a 14 39 22

Bug report

Flarum info

Flarum core 0.1.0-beta.6
PHP 5.6.30-0+deb8u1
Loaded extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, pcntl, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, PDO, curl, gd, geoip, intl, json, mcrypt, mysql, mysqli, pdo_mysql, readline, recode, runkit, ssh2, XCache, xmlrpc, xsl, mhash, XCache Optimizer, XCache Cacher, XCache Coverager, Zend OPcache
EXT flarum-approval v0.1.0-beta.6
EXT flarum-bbcode v0.1.0-beta.5
EXT flarum-emoji v0.1.0-beta.6
EXT flarum-english v0.1.0-beta.6
EXT flarum-flags v0.1.0-beta.6
EXT flarum-likes v0.1.0-beta.6
EXT flarum-lock v0.1.0-beta.6
EXT flarum-markdown v0.1.0-beta.5
EXT flarum-mentions v0.1.0-beta.6
EXT flarum-sticky v0.1.0-beta.6
EXT flarum-subscriptions v0.1.0-beta.6
EXT flarum-suspend v0.1.0-beta.6
EXT flarum-tags v0.1.0-beta.7
Base URL: http://localhost/flarum
Installation path: /home/pierre/www/flarum

Additional comments

Admin seems to work fine.

Log files

JS logs:

14:34:47,706 ReferenceError: System is not defined 1 forum-91a15deb.js:1:1
    <anonyme> http://localhost/flarum/assets/forum-91a15deb.js:1:1
14:34:47,708 ReferenceError: System is not defined 1 forum-en-deb59aba.js:1:1
    <anonyme> http://localhost/flarum/assets/forum-en-deb59aba.js:1:1
14:34:47,714 ReferenceError: System is not defined 1 flarum:89:23
    <anonyme> http://localhost/flarum/:89:23

PHP logs:

[Fri Feb 17 14:37:17.008921 2017] [:error] [pid 749] [client ::1:47723] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /home/pierre/www/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://localhost/flarum/
[Fri Feb 17 14:37:17.388650 2017] [:error] [pid 749] [client ::1:47723] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /home/pierre/www/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://localhost/flarum/
luceos commented 7 years ago

Duplicate, see the forum how to solve, also make sure to hard refresh the cache of your browser:

https://discuss.flarum.org/d/4218-zend-stratigility-debug-message-after-composer-update

Rudloff commented 7 years ago

Using zend-stratigility 1.2.1 as discussed in the forum does indeed fix the PHP deprecated warnings but it does not fix my JS issue, which is the main issue here.

luceos commented 7 years ago

Do you use cloudflare? Try disabling if so. Also hard clear your browser cache and run php flarum cache:clear beforehand.

Rudloff commented 7 years ago

php flarum cache:clear did the trick, thanks!