askvortsov1 / flarum-pwa

Progressive Web App support for Flarum
MIT License
34 stars 12 forks source link

An error occure when apply the pwa extension #10

Closed Roy-Kid closed 3 years ago

Roy-Kid commented 4 years ago

I have successfully install pwa extension by composer require command When I turn to barraar page and click the checkbox before the pwa item then: image I have updated all the things and reload the page but not work. Should I install the sw.js and something else in the previous repo?

askvortsov1 commented 4 years ago

Hi! Could you check your error logs (storage/logs/flarum) and share more info?

Roy-Kid commented 4 years ago

image Thanks in advanced!

askvortsov1 commented 4 years ago

Hi! It looks like this is cut off. Could you copy-paste the full log into a hastebin?

Roy-Kid commented 4 years ago

flarum-2020-09-22.zip SOOOO sorry for this mistake! Now i attach the log file in the compressed file

askvortsov1 commented 4 years ago

Looks like it's trying to recreate a table that already exists. Try going into your database, dropping the push_subscriptions table, and then trying again

Roy-Kid commented 4 years ago

image I delete it from myphpadmin, but still error at the extension store of flarum. Then I back to phpadmin and the push_subscriptions appears again. I attach the log. I...have almost no idea about the backend and I just use this beautiful framework for a BBS... Hope you can help me !

askvortsov1 commented 4 years ago

Ah, that is correct (no need to delete anything else). This is an issue with your database, take a look at https://discuss.flarum.org/d/23219-progressive-web-app-and-push-notifications/168

Roy-Kid commented 4 years ago

Thanks a lot ! Everything could work except one error when I install the extension for message pushing: image The last help! Please~ Thanks for your kind contribution!

askvortsov1 commented 4 years ago

You need to require v5.2.5 of minishlink web push

Roy-Kid commented 4 years ago

image After installing the v5.2.5 minishlink, there still a notification that tells me I have no gmp and minishlink. If it is not easy to solve, it ok. I can wait for the next version update Thanks again for your generously help !!!

askvortsov1 commented 4 years ago

You're making progress! Now, you need to ensure that the php-gmp extension is not just installed, but also enabled. The exact steps for doing this depend on your server's operating system.