Closed benhartwich closed 6 years ago
Okay so the php flarum info output shows you have many other extensions installed, how did you install these? The issue you see is related to a requirement of one extension, which one depends on the extensions you have installed and the extension you tried installing. Could you be more specific on how to reproduce this state?
Hi,
I´ve installed the the extensions by using command line: sudo -u flarum composer require... All files are owned by flarum. How can I give you further debugging infos?
Currently I can´t use the bazaar app anymore because I get a 504 error. Php memory has 1G.
Okay so you explain that to reproduce I can install Flarum, then Bazaar and then any extension via Bazaar. But your php flarum info
output lists these installed extensions, eg:
and many more non-core extensions. My question is:
Also please post your composer.lock
file, please upload it as a file. With it I can recreate your forum setup.
I´ve installed flarum a while ago. Two days ago I configured it for the first time and installed different extension only via command line. After I had installed different extensions by command line I found your app for managing extensions. After I raised the php memory your extension worked for the first time, but installation or removing failed with the error code above.
To reproduce my problem:
Github doesn´t support this file type. You can download my file at https://cloud.speibox.de/s/Vq8g6vt6wQmZTPy
Could you also share your composer.json
, seems the lock by itself isn't enough 😞
Of course: https://cloud.speibox.de/s/SAHSpgbHbJoDIJt
What specific extension did you try to install with Bazaar. Because currently I can easily install your dependencies.
I tried Dashboard. I don´t really know, what is / was causing the problem. For now it´s working again. Perhaps it´s a cache issue or could it be that your bazaar api key is limited for use of different site parallel? Could your api key have a time-out?
When I get a 504 error (sometime when I load the bazaar admin page) I see at chrome developer console the following error:
admin-266f5493.js:17326 Uncaught TypeError: originalConfig.apply is not a function at Object.vdom.attrs.config (admin-266f5493.js:17326) at admin-266f5493.js:1167 at admin-266f5493.js:2052 at forEach (admin-266f5493.js:911) at Function.m.render (admin-266f5493.js:2052) at admin-266f5493.js:2254 at forEach (admin-266f5493.js:911) at redraw (admin-266f5493.js:2250)
I've been thinking about this issue and concluded the following;
Could you perhaps install a clean version with only Bazaar and see if that works? If so, we can exclude Bazaar as the culprit in your issue.
I´ve installed a fresh flarum and installed your app by command line (composer require...)
On the first visit of bazaar I got an javascript error:
TypeError: originalConfig.apply is not a function [Weitere Informationen] admin-2ea8ea7e.js:1930:81 render/vdom.attrs.config http://test.astronomie.community/assets/admin-2ea8ea7e.js:1930:81 scheduleConfigsToBeCalled/< http://test.astronomie.community/assets/admin-2ea8ea7e.js:163:32 m.render/< http://test.astronomie.community/assets/admin-2ea8ea7e.js:327:34 forEach http://test.astronomie.community/assets/admin-2ea8ea7e.js:94:54 m.render http://test.astronomie.community/assets/admin-2ea8ea7e.js:327:1 redraw/< http://test.astronomie.community/assets/admin-2ea8ea7e.js:399:1 forEach http://test.astronomie.community/assets/admin-2ea8ea7e.js:94:54 redraw http://test.astronomie.community/assets/admin-2ea8ea7e.js:397:1
After reloading the page I could access bazaar. First I tried to install the Deutsch app. This failed with the same javascript error. Nginx log says: connection timed out. I use php 7.1 and my php settings are:
php_admin_value[open_basedir] = /var/kunden/flarum:/usr/share/php:/tmp:/var/ngx_pagespeed_cache:/var/run/nginx/cache php_admin_value[disable_functions] = dl,passthru,shell_exec,system,proc_open,popen,show_source php_admin_value[memory_limit] = 1G php_admin_value[max_execution_time] = 360
Nginx pagespeed is off, there is no opcache or fastcgi_cache. The app was installed successfull although the process run in a 504 error.
You should try using cronjob processing.
Update your bazaar constraint in your composer.json
to match dev-master
then run composer update --prefer-dist --no-dev -o
. After that follow the instructions for cronjob processing, which will offload the request to nginx:
https://github.com/flagrow/bazaar/wiki/Cron-task-processing
Make a backup first though.
I'm closing this as it's been some time since the last activity.
Let us know if you experience this again :wink:
Please note the suggestion to use dev-master is no longer valid as that branch has been readied up for Flarum beta 8.
Steps to reproduce
Expected behaviour
The other extension should be installed via bazar backend management.
Actual behaviour
I get an oops something went wrong error
Configuration
Operating system: Debian 8
Version of Bazaar: latest Version of Flarum: latest Other extensions: Flarum core 0.1.0-beta.7 PHP 7.1.12-2+0~20171207160754.12+jessie~1.gbp5c91f3 Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, exif, mcrypt, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache EXT flagrow-analytics 0.6.0 EXT flarum-approval v0.1.0-beta.7 EXT flarum-bbcode v0.1.0-beta.5 EXT wiwatsrt-best-answer v0.1.0-beta.11 EXT davis-customfooter v0.1.0-beta4 EXT cbmainz-de 0.7.1 EXT flarum-emoji v0.1.0-beta.6 EXT flarum-english v0.1.0-beta.7 EXT flarum-auth-facebook v0.1.0-beta.6 EXT flagrow-bazaar 0.2.4 EXT flagrow-upload 0.6.0 EXT flarum-flags v0.1.0-beta.7 EXT avatar4eg-geotags 0.2.0 EXT sijad-recaptcha 0.0.2 EXT flagrow-guardian 0.1.2 EXT flarum-likes v0.1.0-beta.6 EXT sijad-links 0.1.0-beta.6 EXT flarum-lock v0.1.0-beta.7 EXT flarum-markdown v0.1.0-beta.5 EXT s9e-mediaembed 0.3.2 EXT flarum-mentions v0.1.0-beta.7 EXT manelizzard-notify 0.2.1 EXT sijad-pages 0.1.0-beta.3 EXT avatar4eg-share-social 0.2.3 EXT xengine-signature 0.1.2 EXT terabin-sitemap v1.0.2-beta.2 EXT flarum-sticky v0.1.0-beta.7 EXT flarum-subscriptions v0.1.0-beta.6 EXT jordanjay29-summaries 0.2.0 EXT flarum-suspend v0.1.0-beta.7 EXT flarum-tags v0.1.0-beta.8 Base URL: https://astronomie.community Installation path: /var/kunden/flarum/httpdocs
**Logs**:
POST https://astronomie.community/api/bazaar/extensions { "errors": [ { "code": 500, "title": "Internal server error", "detail": "Flagrow\\Bazaar\\Exceptions\\ComposerException: