0

We developed a CodeIgniter application using the PHP ActiveRecord ORM for the Query builder, and the application runs in a Docker container on an AWS server.

We recently upgraded PHP from version 8.0 to version 8.2 and php-activerecord is no longer supported by PHP 8.2. The application crashes with a Bad Gateway error.

Is it possible to modify php-activerecord to make it run and what steps should I take to fix the bad gateway error?

1 Answer 1

1

The last release of php-activerecord was almost 15 years ago. So it's quite normal that it no longer gets along with PHP 8.2.

That said, another PHP ActiveRecord project exists and is designed for PHP 8.1+. I don't know if it will require a migration effort for you. You should have a look on it.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you for giving the right version .
I am getting the below error couldn't execute query on ActiveRecord\Adapter\MysqlAdapter. user: : SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens $user = User::find('all',['conditions' => ['id = ?',100]]);
@Antoniraj: as this is a completely different issue, I suggest you to post another question on StackOverflow and mark this one as solved. In your new question, please post sample of data, code, query, etc. to make it reproductible

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.