Using GRID4PHP Query in event not working after PHP8 update

QuestionsUsing GRID4PHP Query in event not working after PHP8 update
Tim Moore asked 3 years ago

I use the $g->get_one(),$g->execute_query a lot, but now it crashes with an error when one of these, or more, are used in an on edit/on update event?

https://gist.github.com/tmoore88/819a35a6272721cf5a2ae37a61106452

View post on imgur.com

Then I REM them out, the code works again. Please advise on the issue.

Thanks,

Tim

5 Answers
Abu answered 3 years ago

Hello,

Please check php error log for possible error message as there is nothing displayed here.

It would help in finding the reason.

Tim Moore answered 3 years ago

https://gist.github.com/tmoore88/b8d15a674f89934a44ae6eca475fcf4d

this is what i am getting? hard to check this with all the warnings.

Tim Moore answered 3 years ago

https://gist.github.com/tmoore88/b8d15a674f89934a44ae6eca475fcf4d

this is what i am getting? hard to check this with all the warnings.

Tim Moore answered 3 years ago

Abu,
I am not sure were you are at on this, or if you had time to look at this at all. I am a bit desperate, so I did some messing with it and found out a few things.

https://gist.github.com/tmoore88/085cca1f0ba6dcbf58b8deb7b80f2511

I could update 200+ pages, but my hope is, once you see this, You will have an easy fix. For the most part, the changes are easy, except when I need to pull then new insert ID.

Thanks,
Tim Moore

Tim Moore answered 3 years ago

I fixed this myself as I needed it, and did not even know if you were looking at the issue.

Your Answer

4 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?