Http://bkchart2.epizy.com/index.php

http://bkchart2.epizy.com/index.php

When form submitted values not stored in database just redirect to same page
why data not store in database after form submitted?
This happening from today
until two days ago everything working properly

Please use the guide below to enable error messages, then try again.

5 Likes

I have enabled error messages
error i got is
Warning: Undefined array key
what can i do now ?
website working properly previously how suddenly this error appears ?

Debug your code?
Make sure it is compatible with PHP 8.2

4 Likes

Now you need to debug and fix your code. The message “Undefined array key” means that in your code, you’re trying to access a variable stored in an array with a key that does not exist in the array. It’s up to you to check which key is being accessed, check what the value should be, what it actually is, where the key should be set, whether that code is being reached, etc.

We’re upgrading all servers from PHP 7.4 to PHP 8.2. With every new version, PHP tends to become more strict. And it seems that before PHP 8, PHP would just return null if you’re trying to access an array key that does not exist, but with PHP 8 and later it will return an error.

You will need to update your code to work with this new PHP version. You can either use isset() or empty() checks to see if the value is present, or use the Null Coalesce operator to return a default value.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.