Error when viewing website

Hi!

I downloaded the site for local development with Cyberduck Edited the code and reuploaded the whole website again. Now I get this in the browser instead of the index page:

Warning: require(DIR/kirby/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /var/sites/w/womenandtextiles.org/public_html/index.php on line 6

Warning: require(DIR/kirby/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /var/sites/w/womenandtextiles.org/public_html/index.php on line 6

Fatal error: require() [function.require]: Failed opening required ‘DIR/kirby/bootstrap.php’ (include_path=’.:/usr/local/lib/php’) in /var/sites/w/womenandtextiles.org/public_html/index.php on line 6

It works fine in Mamp, and I doublechecked that the .htaccess file is in the folder.

Anybody know what this is about? I googled and the only hit was about permissions. But I think they are fine 644 for folders and 755 for files.

That sounds as if the Kirby folder is missing/empty?

Hi Texnixe, thanks for the quick response (not a first).

I just checked. Kirby folder seems to be there

Did this work before? Does your server run PHP 5.4+?

I will check if my server runs php 5.4, but Yes, it worked before, so I would like to assume it is running pPHP 5.4 at least.

Another option: the download hasn’t finished or some files were corrupted in the process.

Having, to leave my desk for a bit. I will double-check that too, thanks!

Sorry I realise this is probably not strictly a Kirby problem :slight_smile:

Are there any files in this folder? Are these files correct?

The error really looks like you are using an old PHP version. Could you please put a PHP file with the following contents somewhere and check which version you are using?

<?php

phpinfo();

Solved! It was indeed the PHP version, it had changed in the hosting to PHP 5.2 for some reason. I will lodge a complaint with my host.

Thanks all! Saved my day.