modufolio / Koken-App

38 stars 5 forks source link

The API Error prevents theme settings #15

Closed baslking closed 5 months ago

baslking commented 1 year ago

I've done a successful Linux install: PHP Version 8.1.13 MySQL Version 10.9.4-MariaDB nginx/1.22.1 ImageMagick 7.1.0 FFmpeg Version 4.3.4 No matter what I do I always get the error code in api.html when I try to set a theme. I've tried all the tricks I can find on Google

I see logs like: Koken-App/rewritetest/index.php" is not found (2: No such file or directory), client: 172.16.16.16, server: , request: "GET /rewrite_test/ HTTP/1.1", host: "mynas:8888" Dec 22 19:39:29 mynas nginx[1201567]: 2022/12/22 18:39:29 [error] 1201567#1201567: 73394 "/poolz/Koken-App/rewritetest/index.php" is not found (2: No such file or directory), client: 172.16.16.16, server: , request: "GET /rewrite_test/ HTTP/1.1", host: "mynas:8888" Dec 22 19:39:30 mynas nginx[1201567]: 2022/12/22 18:39:30 [error] 1201567#1201567: 73321 open() "/poolz/Koken-App/admin/undefined/installs/07a923d2ba871524e7641da96b15b8d2/updates" failed (2: No such file or directory), client: 172.16.16.25, server: _, request: "GET /admin/undefined/installs/07a923d2ba871524e7641da96b15b8d2/updates HTTP/1.1

Otherwise everything seems to work correctly, so close.... Lightroom plugin works etc.

modufolio commented 1 year ago

Thank you for reporting this, I'm bit sick now. I will give this priority soon.

modufolio commented 1 year ago

Can you test it with the new release 1.1.6?

https://github.com/modufolio/Koken-App/releases/tag/1.1.6

Update instructions

  1. Remove all the files except the storage folder.
  2. Download the lasted zip https://github.com/modufolio/Koken-App/tags
  3. Unpack the zip
  4. Copy all the folders / files except the storage folder.
  5. Remove all the files in the storage/cache/api folder.

It should work now.

modufolio commented 1 year ago

@baslking I see that its working on php 7.4 and not for 8.0 and 8.1.

I will do some more research

baslking commented 1 year ago

@modufolio Thanks for looking at this! I did the 1.1.6 upgrade and I have the same result as you do. (same error as before)

Jaegerstefan commented 1 year ago

I also have the same issue with the 1.1.6 and PHP8

baslking commented 1 year ago

I upgraded to 1.1.7, a new error but Themes are not editable (none appear now) I get: Console error Koken isn't able to load data. Please click the button below to try and fix the problem. If you see this error message again thereafter, please contact us for support.

Screenshot 2023-03-11 at 11 13 05
ChemicalShard commented 1 year ago

I’ve had the same error as above but hadn’t acknowledged it. I really appreciate that you are trying to keep koken alive. I’ve tried so many other photography cms but none of them are at the same calibre as koken. It’s a real shame what has happened. On 11 Mar 2023, at 10:13, Brad King @.***> wrote: I upgraded to 1.1.7, a new error but Themes are not editable (none appear now) I get: Console error Koken isn't able to load data. Please click the button below to try and fix the problem. If you see this error message again thereafter, please contact us for support.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

modufolio commented 1 year ago

@baslking @Jaegerstefan @ChemicalShard @Accudio Can you test the fix for this issue? In my environment i've solved this issue on PHP 8.1. Added a new version for this fix 1.1.8

xabirequejo commented 1 year ago

Not sure if it's the same issue but my hosting provider forced me to upgrade to PHP 8.1 recently. Installed 1.1.8 and I see this

API Error
The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections.

I was using vanilla Koken until now, maybe I should've update to custom Koken before?

I'm using Dreamhost so I believe that's Apache, MySQL (8.0.28) and PHP 8.1.9. My skills are limited so not sure how much more details I could provide.

Edit: that's when I visit the main site (home). I get the same message as @baslking when visiting the admin area.

baslking commented 1 year ago

Thanks for the rapid updates!
At first the 1.1.8 didn't change anything, but further investigation shows that just one installed theme was causing the problem. I removed the "Boulevard" theme and now it seems to be working. I will keep investigating.

BTW I am using PHP 8.2

Screenshot 2023-03-13 at 00 07 07
modufolio commented 1 year ago

Not sure if it's the same issue but my hosting provider forced me to upgrade to PHP 8.1 recently. Installed 1.1.8 and I see this


API Error

The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections.

I was using vanilla Koken until now, maybe I should've update to custom Koken before?

I'm using Dreamhost so I believe that's Apache, MySQL (8.0.28) and PHP 8.1.9. My skills are limited so not sure how much more details I could provide.

Edit: that's when I visit the main site (home). I get the same message as @baslking when visiting the admin area.

@xabirequejo Do you experience the same issues with a fresh new install too? What themes and plug-ins are you using?

ChemicalShard commented 1 year ago

I carried out a fresh install using 1.1.8 with the following specs:

I have the same error as soon as I click the 'Site' link within admin panel. I can edit the theme settings but when I click 'Themes' sub-link I get the API error:

Screenshot 2023-03-13 at 12 09 32

I tried the following technique @baslking used but the error is still replicated even after clearing system cache:

Thanks for the rapid updates! At first the 1.1.8 didn't change anything, but further investigation shows that just one installed theme was causing the problem. I removed the "Boulevard" theme and now it seems to be working. I will keep investigating.

BTW I am using PHP 8.2 Screenshot 2023-03-13 at 00 07 07

Other than the above, the whole installation is functioning as expected.

Jaegerstefan commented 1 year ago

It's the same for me. The Boulevard themes seems to be problematic, the "original" one and the one i modified in the past. If only Elementary is available it is mostly stable.

xabirequejo commented 1 year ago

Sorry I never replied.

My internet is limited to 0.001 KB/s so it's nearly impossible to test anything like this.

@xabirequejo Do you experience the same issues with a fresh new install too? What themes and plug-ins are you using?

If by fresh install you mean uploading pictures from scratch, then I didn't go that far. I simply replaced the original Koken with the modified one because the original Koken wasn't compatible with PHP8. But I didn't remove and re-upload my pictures, I left storage untouched.

My plugins are:

And my themes:

I tried locating Boulevard but I don't see it. Or am I looking on the wrong place?

I love Koken, I really do, it's perfect for what I want, but I'm not sure it's fixable. Even when it was actively developed it felt slow.

I am now considering moving from a simple hosting to a VPS and in that case I'd try Photoview or Librephoto.