Welcome to the Koken CMS community!

Here at KCS, you will find a friendly bunch of photographers who like to share their love for the Koken CMS. We hope that you will enjoy your time here and thrive in our community!

You asked for it: Donations!
You asked for it, and it's here: The possibility to "buy me a beer (or more)"!

Seriously: By giving a small paypal donation you will help with keeping this site afloat and also give me more incentive to develop OxyGen further... ;)

// Bjarne Varöystrand and the KCS Team
Koken Development

Koken API communication issue + Php version trouble + Theme trouble

Error messages, failures, broken content.
Forum rules
As of late, we have been seeing cases where some of you have been posting multiple types of questions within a singular type of topic...

This makes searching here a nightmare for people whom are attempting to find out whether or not their question has already been asked, or possibly even answered. Therefore, I would like to implement some very basic rules, which I think everybody will be happy with, given that they will lead to better search results.

  1. All public communication is done in English
  2. ONE question per topic
  3. Make the title descriptive
  4. If it's regarding a theme: make sure you mention the theme name.
  5. Leave a URL to your site, since sometimes, custom "hacks" and CSS will be uniqe to your site.

I believe that these simple rules will not only make our lives easier, but also the lives of our visitors :D

I am of the opinion that ignoring these requests will make it harder for us all.
Plus, we won't be able to actually mark an issue/topic as solved, since it would be more difficult to determine what we're actually trying to solve! For example: Are we addressing the first, second or third question?
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Mon 16 Nov 2015, 14:56

Hi,

I was testing my website updating the theme back and forth and suddenly the site stopped working and gave me a 500 error. Found out from someone at Koken that I had to change the .htaccess file, so I did but it didn't fix the problem.

So I also tried also to delete storage/cache/api and storage/cache/site. It didn't fix the problem.

Then I saw Koken's Facebook page that it might be a PHP version problem. Since mine was 5.3.x, I changed it to 5.6.6... And then had a msg on a red background:

"Cannot connect to the API. Error message:
Database connection failed. Make sure the database server is running and the information in storage / configuration / database.php is still correct.”

So I got back to php 5.3 (I'm with iPage.com) and it started (half) working again, since now I can’t change themes anymore. When I do change, the system said it is changed but it’s not! Going back in the theme choice section shows it stayed with “Elementary” Also when I’m in the Drafts visualisation of the Site section, the site preview doesn’t show anymore (See Screenshot)

Can anyone help?
Thanks
Attachments
Screen Shot 2015-11-15 at 13.11.00.png
Screen Shot 2015-11-15 at 13.11.00.png (160.03 KiB) Viewed 1649 times
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Bjarne Varöystrand » Mon 16 Nov 2015, 15:05

Hi Arnaud.
Internal Server Error is something that is internal to your host and not related to Koken.

But as you write, something is going on here

I'm sending you a PM: Sounds like I will need to see this "in person.
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble  Topic is solved

Postby Bjarne Varöystrand » Mon 16 Nov 2015, 15:59

The "Internal Server Error" was just a temporary error from your host.
These might happen from time to time on shared hosts: WE are experiencing them here some times to.

The other part of your problem looks like it was related to your own browsers cache not refreching as it should (KOken admin" should not be cached) and this is a problem that was introduced in the v0.21.5 I belive...

I created a .htaccess inside your admin directory to prevent the admin to be cached

Code: Select all

<FilesMatch "\.(html|htm|js|css|php|lens)>
        FileETag None
        Header unset ETag
        Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
        Header set Pragma "no-cache"
        Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>


Try to empty your cache, and log in to your admin again after that
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Mon 16 Nov 2015, 16:20

Ok, so I emptied the cache of my browser and logged in back. But I still have blank pages or 500 error msgs showing on black background...
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Bjarne Varöystrand » Mon 16 Nov 2015, 16:32

That sounds strange: I looked at your site again, both via admin and via the public side
Everything acts and looks as it should: I'm sorry but this problem resides inside your browser somehow.
You might want to try to restart your entire system, to see if that helps...

Other then that I'm afraid I cant help...
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Mon 16 Nov 2015, 16:41

I'll do that, thanks for your help! Cheers ;)
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Bjarne Varöystrand » Mon 16 Nov 2015, 16:46

No problem! ;)

Let us know how it went?...
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Mon 16 Nov 2015, 17:49

Well there really is a cache problem. I cleared it on Safari and Chrome... Sometimes theme changing works, sometimes it doesn't. Even if in the admin it says that the theme has been changed it doesn't show as different afterwards... Is there a force cache clearing option somewhere? Also should I update my php now? Could it be related?
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Bjarne Varöystrand » Mon 16 Nov 2015, 18:23

I would hold off the update of PHP a couple of days...

The strange thing here is that it sounds like you browsers dosent listen to the .htacess i placed in your admin folder.
This tells the browser not to cache any files at all inside the admin directory...
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Mon 16 Nov 2015, 23:50

I don't really know what to do... It's beyond my (limited) technical skills...
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Bjarne Varöystrand » Tue 17 Nov 2015, 01:15

If i could, I would have come over to have a look at your settings, since this is a local issue...

Maybe if you ask around, you might have a friend that could help you out here?
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Ohyeahz
User
User
Posts: 6
Joined: Mon 16 Nov 2015, 14:49
Your name: Arnaud

Re: Koken API communication issue + Php version trouble + Theme trouble

Postby Ohyeahz » Tue 17 Nov 2015, 12:05

Thanks Bjarne, I think u already did the best u could! ;-)
I'm just gonna continue to toy with my theme and hope that this cache problem will fix "by itself" or with koken's next update...
Cheers!

  • Similar Topics
    Replies
    Views
    Last post

Return to “General Errors and usage problems”



Who is online

Users browsing this forum: No registered users and 0 guests