Error 500 with one theme in particular

Hello,

I’m trying several Kirby themes but I have an Error 500 but it’s weird, it’s working fine here or with the starterkit here, but not here.

The .htaccess is the same, I don’t understand the problem…?
I also tried a clean install of Kirby (with the plainkit-master) and then replaced the site , content and assets folders from the theme, it doesn’t work either so I guess the problem is in those files but I really don’t know which.

My server is running on PHP 7.3, the rewrite mode should be working (I checked with my provider) and I use FileZilla (sFTP) to drop the files.

Do you have any ideas on how to solve this problem ?

Thank you.

The .htaccess file (in all the themes) :

# Kirby .htaccess

# rewrite rules
<IfModule mod_rewrite.c>

# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on

# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder.
# Otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite
# Set the RewriteBase to:
#
# RewriteBase /mysite

# In some enviroments it's necessary to
# set the RewriteBase to:
#
# RewriteBase /

# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]

# block text files in the content folder from being accessed directly
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]

# block all files in the site folder from being accessed directly
# except for requests to plugin assets files
RewriteRule ^site/(.*) index.php [L]

# Enable authentication header
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

# block direct access to kirby and the panel sources
RewriteRule ^kirby/(.*) index.php [L]

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

</IfModule>

# compress text file responses
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

Are these three different themes? On different servers or in different folders?

Does the one which doesn’t work have a kirby folder with files in it at all?

1 Like

Yes, three different themes installed on the same website (in three different folders), on the same server.

And yes, the one which doesn’t work has the kirby folder with files in it.

Thank you.

Could you enable debug on that third one in the config, please? I only see a blank screen.

And they all have the exact same .htaccess?

Yes it’s the same .htaccess. :confused:
And sure, but how do I enable debug ?

Thanks

In /site/config/config.php: https://getkirby.com/docs/reference/system/options/debug

(all option go into a single return array)

Thanks !

It’s done (but I’m not sure if I should use a closing php tag).

Right now it’s :

<?php

return [
    'debug'  => true
];

and before it was :

<?php

return [
  'debug' => true,
  'ssl' => false,
  'home' => 'home',
  'languages' => true,
];

So the debug was set on true, it’s weird.

Thank you !

No closing php tag in php only files!

But its still not working and no error message. Can you see anything in the php_error logs on your server?

Ah ! In the fpm.log I have :

[30-Jan-2020 13:05:47] WARNING: [pool www] server reached max_children setting (2), consider raising it

But why this theme in particular isn’t working ??

Also, in the PHP Info I see :

url_rewriter.hosts no value no value
url_rewriter.tags form= form=

Thanks

I have no idea. Does the theme work on your localhost? Feel free to send it to me for testing via download link per PM.

It’s weird, but thanks for the offer, I’m gonna send it to you then !

Edit for my future self or someone else : @texnixe found the problem ! There was a problem with the uniform plugin (I needed to download the version on github and replace that folder). It’s working now. :smiley:

Thank you !!