Links
Hello, I have been trying to install this extension through the method suggested:
composer require sijad/flarum-ext-links
however, it seems that the shared host I use, Dreamhost, is killing the processes before its fully installed due to excessive resource usage. Is there any other way I can install this extension?
Thank you and any help is appreciated.
blai You can install a swap file if your host allows it.
Hello,
Thanks for your reply, got it to work by dropping the github folder and updating through composer.
Hello,
Another question, I am getting an error whenever I try to add an external link. Error: 500, Internal server error. I can add internal flarum links just fine.
Again, any and all help is greatly appreciated!
Thank you!
Hello,
Would the debug log from my forum suffice? I am pretty new to php/forum development so I am not entirely sure what storage/logs/folder mean. Would i find this through a specific path? (for example. /home/user_name/logs/domain)
Thank you
Hello,
Perfect, I just tested and it works like a charm.
Thank you!
blai Hi, I'm having the same problem with Dreamhost. What do you mean by "dropping the github folder and updating through composer"? I'm trying to figure out a way to install extensions without all my processes being killed. ?
electrolyte blai Please move this discussion to a separate support request (composer memory issues).
blai Whoa, I'm just reading it - FANTASTIC. Weirdly enough I kept trying to install extensions and my host kept telling me it was killing the process. And then I checked the admin panel ... and the extensions were there. No idea how that happened.
I'm absolutely going to read your guide though. Thanks so much for posting this. ?
sijad could you add to your top post how to update your extension? Cheers!
sijad never mind, this problem has been fixed, please update extension using composer and try again please
composer update
@sijad I am getting errors then I try to save a newly added link. See the log in pastebin here .
justshipit can you reinstall the extension?
- Edited
Removed with composer remove sijad/flarum-ext-links
and installed again. Still doesn't work and showing me this (beginning of error log):
POST https://www.xxxxxxxx.xyz/discuss/api/links
{
"errors": [
{
"code": 500,
"title": "Internal server error",
"detail": "exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_internal' in 'field list'' in /var/www/html/discuss/vendor/illuminate/database/Connection.php:390\nStack trace:\n#0 /var/www/html/discuss/vendor/illuminate/database/Connection.php(390): PDO->prepare('insert into `fa...')\n#1 /var/www/html/discuss/vendor/illuminate/database/Connection.php(644):
justshipit Make sure you enable/disable the extension. Flarum doesn't clear extension-related cache unless you do that.
justshipit really not sure why this happened, please run this code in your root folder:
php ./flarum migrate
jordanjay29 Good call. Worked!