Upgrade to 1.6 from 1.5

Hi

I following the instructions.
I try to upgrade IP from 1.5 to 1.6 but /index.php/setup show empty page.

Run PHP 8.1

Empty page means an exception or parse error has occurred.
The error_reporting settings are set to a way that you canbot see the errors, usually because youā€™ve set the ā€œenvironmentā€ to ā€œproductionā€.

  • Turn on debug mode in your ipconfig.php
  • See if you can set the ā€œenvironmentā€ to ā€œdevelopmentā€
  • Check the PHP error logs

If you cannot see any errors in the logs, clear the logs and regenerate your blank page, it should show your parse error.

Only do this if you cannot find the parse error in your logs:

define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');

It means you have to go to https://your-site.com/index.php?CI_ENV=development

(and you can probably even set it in your ipconfig.php, which is better)

In the end youā€™ll need this setting in your php.ini:

ini_set('display_errors', 1);

But that can all be done by setting the environment to development

1 Like

Big thanks!

I hadnā€™t turned it on DISABLE_SETUP

Now the upgrades are done but there is one other problem that was there before. I think it will disappear after the update. Unable to create a new invoice. Links have a # symbol at the end.

For example:

/index.php/dashboard# menu on top
/index.php/invoices/view/563# I want to copy an existing invoice

Try to explain the entire problem:

  • You are on page ā€¦ (link without your domain)
  • You click on button ā€¦
  • If you open Developer Console (F12 in your browser) the Console tab says ā€¦
  • And the Network tab says ā€¦

Here

Great explanation!
Iā€™ll close your case then because itā€™s resolved?

So where is the case resolved? I canā€™t add new the bills because there is a symbol # at the end of the links. Unable to go to the relevant section.

Canā€™t get to the create a new bill section

So whereā€™s the steps to reproduce?
Output of your networks tab?
Output of your console tab?

All you gave was a screenshot.
Yep, i see your ā€œ#ā€ sign

Now i need the rest of your details

  • You are on page ā€¦ (we know your url by now)
  • You click on button ā€¦
  • If you open Developer Console (F12 in your browser) the Console tab says ā€¦
  • And the Network tab says ā€¦

ok, here

1 Like

Good screenshot of the Network tab.
See that error message in Red Letters? Can you translate that the English language

Sorry. I hope this is better.


I hope this is better

Way better.
The content you are serving must be served over HTTPS

Some of it is served over HTTP and some over HTTPS.

This confuses your server and therefore it blocks when you click on that link

Start resolving your problem by:

  • opening ipconfig.php
  • find IP_URL=
  • paste that entire line, right here in your forum thread

I found, and there is nothing after the equal sign. What exactly to write there?

That is really really strange, because you have an address where your InvoicePlane is running (check your browser address bar)
So the fact that things after IP_URL= is really strange

I try to copy invoice too.

I really donā€™t know what to do