Not working on php 8.2, semi working on PHP 7.4

Hi, I installed 1.6.0 on php 8.2 but the installer gives a completely blank page. I can’t do anything.

I removed the domain from the log files for security reasons but the logs are:

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Failed to parse dotenv file. Encountered an invalid name at [<?php exit('No direct script access allowed'); ?>].

I switched to PHP 7.4, invoiceplane works, but with a warning banner :

PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: MX/Router.php

Line Number: 224

Backtrace:

File: /home/tim/domains/.be/public_html/invoice3/application/third_party/MX/Router.php
Line: 224
Function: strpos

File: /home/tim/domains/.be/public_html/invoice3/application/third_party/MX/Router.php
Line: 71
Function: set_class

File: /home/tim/domains/.be/public_html/invoice3/index.php
Line: 325
Function: require_once

Is it not supported? PHP 7.2 works fine but that is an old php version I don’t want to use anymore…

Check here for your solution:
https://community2.invoiceplane.com/t/topic/10011/26

PHP 8.2 is unsupported for now, let’s wait till CodeIgniter comes with their version
PHP 8.1 is the supported version.
Should work with PHP 7.4 as well

Hi,

running 7.4 right now but I still get an error message. You can see it on
http://bigsoundsystems.be/invoice3/

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: MX/Router.php

Line Number: 224

I also uploaded it to another folder http://bigsoundsystems.be/invoice2/index.php/setup and I get this message
Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”.

I don’t understand how i can have 2 different instances with the same code… it’s just an upload of the 1.6.0 zip file on the same domain.

My “solution” is by commenting in ip > vendor > composer > platform_check.php the following lines

//if (!(PHP_VERSION_ID >= 80100)) {
// $issues = 'Your Composer dependencies require a PHP version “>= 8.1.0”. You are running ’ . PHP_VERSION . ‘.’;
//}

but now PDF generation is not working
What a mess. Changing to 7.2 and hoping the installation on the same database as my previous IP installation did not mess anything up.

Kinda disappointed here. I love the software but simply upgrading it for security purposes makes it unreliable.

You can’t say it’s a mess until you’ve pinpointed your actual problem and solution

So, you switched back to 7.4, did you delete composer.lock and vendor directories, change composer.json and run composer install? Right.
How about solving it locally first.

Changing back to 7.2 will probably result in other problems.

1 Like

Hi Underdog

I did a completely new installation on a new location where 7.4 is installed.

I uploaded v1.6.0 in the /ip folder
http://www.geluidsinstallatie-huren.be/ip/index.php/setup
I changed the config.php file like this
IP_URL=http://geluidsinstallatie-huren.be/ip

And offcourse uploaded it.

As you can see now when I navigate to the setup url, the page is completely blanco.

The .htaccess file looks like this

InvoicePlane htaccess

RewriteEngine On RewriteBase /ip ### uncomment to force HTTPS # RewriteCond %{HTTPS} off # RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

uncomment and adjust if installed in subdirectory

RewriteRule . /ip/index.php [L]
RewriteRule . /index.php [L]

Any advice is appreciated.

Thank you.

Hi @Tim1985, this seems the error we saw when the first line of the ipconfig.php file had not been commented out. Can I kindly ask you to check that you edited the first line of the ipconfig.php as indicated in pt. 6 of the installation instructions Installation - InvoicePlane Wiki which refers to pt. 2 of the upgrade instructions (Update InvoicePlane - InvoicePlane Wiki). This step will be solved in the upcoming v1.6.1 version.

2 Likes

Thank you, I missed that in the instructions.

http://www.geluidsinstallatie-huren.be/ip/setup/language

Now I can select the language (CSS does not load so something is still wrong) and when I continu I am redirected to the “not found” page of the wordpress site in the root of the domain.

But at least we are already one step further. Thank you. If I need to provide more information please let me know.

In your server, if you navigate to /ip/assets/invoiceplane/css/ does it contain the file welcome.css?

Yes, it’s there.

I have no idea what I am doing wrong. I simply upload it, did the changes as instructed in the setup guidelines but it does not work.

Any advice?
Thanks.

Where is your .htaccess file? In which folder?

In domain . com/ip/.htaccess

I’ve the impression that the IP .htaccess file is not beeing used by your server, but that the WP .htaccess is beeing used. You might want to have a look at this: Apache HTTP Server Tutorial: .htaccess files - Apache HTTP Server Version 2.4

1 Like

2 posts were split to a new topic: Problems with IP on PHP 8.2 and PHP 7.4