- ๐ท๐ดRomania idflorin
I can't reproduce.
<?php echo "hello", "world"; ?>
It works fine for me on drupal core 9.5.2 + PHP 8.1 - ๐บ๐ธUnited States bill_redman
I just updated my site to PHP 8.1.14 and although my pages that utilize this module are still working as they should, I now get the following warning displayed twice on every page of my site:
Warning: Undefined array key "s" in eval() (line 5 of modules/composer/php/php.module(81) : eval()'d code).
Any thoughts would be appreciated. Thanks.
- Status changed to Postponed: needs info
9 months ago 6:49pm 3 April 2024 - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
@bill_redman: that is an error in your eval()-ed code, that is the code you input using the PHP filter. That is not the PHP filter's fault.
@wmfinck: are there errors logged in your error log?
- Status changed to Closed: cannot reproduce
9 months ago 12:02pm 4 April 2024 - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Running tests on GitLab CI now with PHP 8.1, they pass fine. https://git.drupalcode.org/project/php/-/jobs/1237898
- ๐บ๐ธUnited States wmfinck
@Gรกbor Hojtsy
I am sorry, while I am still hoping I can use this module in the future, I had postponed all of my website upgrades until recently, because with D9 the migration process still had too many quirks. When I had posted this particular issue, I only had 1 live D9 site at that time, which was a a fresh D9 install.
Now that I have resumed upgrading my 30+ sites away from D7, I am going to D10 and my servers are configured for php 8.2.
Wish I could help, but thank you!
- ๐บ๐ธUnited States wmfinck
But I would gladly give the module a test run, and report back here, if I could install it on a D10 site. I need to use it to post metadata from my shoutcast server onto pages or blocks.
- ๐บ๐ธUnited States wmfinck
As I commented in the thread for Drupal 10 Support ๐ Drupal 10 Support Fixed for this module, I have just tested a block containing php code with the latest dev release of this module.
It is a small test, but the php code is complex, retrieving metadata from several different Shoutcast streams and displaying it in a block on the website.
The module is now working very well with Drupal 10.5 and PHP 8.2.17.
Thanks again!