FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
177 stars 96 forks source link

"Something went wrong while trying to load the full version of this site" #65

Closed acseven closed 7 years ago

acseven commented 7 years ago

Hi, I just created an empty Flarum forum and installed this extension. The issue is that it breaks the site after it has been enabled, returning an empty page with a text header and this notice:

Something went wrong while trying to load the full version of this site

I am able to make it work again by removing the plugin from the settings table. Also, I had installed another extension before s9e/flarum-ext-mediaembed, which loaded fine.

I'm looking to use this extension to test this SMF forum to Flarum migration tool: https://github.com/ItalianSpaceAstronauticsAssociation/smf2_to_flarum

$do_attachments_images = true; // Requires flarum-image-upload ext.

While I'm at it, can you comment if it flagrow/upload it compatible with the query this tool is doing, and also if it would be feasible to use it to import other attachments, different from images? Here's the code section pertaining attachments

Thank you

0E800 commented 7 years ago

After you installed the extension did you run¿:

php flarum cache:clear

On the device with the browser error, did you do a CTRL F5 refresh?

luceos commented 7 years ago

While I'm at it, can you comment if it flagrow/upload it compatible with the query this tool is doing, and also if it would be feasible to use it to import other attachments, different from images? Here's the code section pertaining attachments

It seems to work only with flagrow/flarum-ext-image-upload, not this extension. With some modification the script could however work with this extension and migrate all files, not just images.

Related to the rest, see the question @0E800 asks.

acseven commented 7 years ago

Hi, I did run php flarum cache:clear and made sure local caching wasn't an issue (private nav browser and different browser).

Right after activation: scrn0

When trying to accessing the forum itself directly: scrn1

It seems to work only with flagrow/flarum-ext-image-upload, not this extension. With some modification the script could however work with this extension and migrate all files, not just images.

Thanks for the input, I'll have a look at the script to see if I can make something out of it. I wasn't being able to install flagrow/flarum-ext-image-upload yesterday though, there was something about minimum versions and it wouldn't start, which it now did.

luceos commented 7 years ago

Do you use cloudflare? If so flush that cache too.

acseven commented 7 years ago

Do you use cloudflare? If so flush that cache too.

I do and I did purge its cache (and enabled dev mode), no difference though.

luceos commented 7 years ago

Very weird are you able to provide the url or can you take a look at the webdeveloper console and your error log for your site?

acseven commented 7 years ago

How can I produce an error log related to this? The main error log doesn't contain anything related to it.

acseven commented 7 years ago

Note: enabling 'debug' => true in config.php is making it run properly, but no errors are produced though. I'm looking at the console but nothing seems to ring a bell.

luceos commented 7 years ago

If you disable debug again, does it work then?

luceos commented 7 years ago

And what OS are you on? PHP version?

acseven commented 7 years ago

If you disable debug again, does it work then?

Actually, yes, it does work after setting debug to false.

And what OS are you on? PHP version?

LiteSpeed V6.10 PHP 7.1.2

luceos commented 7 years ago

There are some things that debug mode does. Like flushing caches etc. It's the first time I've heard such an issue to continue past a cache:clear etc however.. Perhaps your permissions are wrong for the asset files or the cache directory.. If I'm not mistaken Flarum will not throw an error if it can't delete a cache file (js, css etc).

acseven commented 7 years ago

Ok, thanks for the help in any case. The debug info is useful for the time being.