Hello folks, I recently undertook a project to convert a drupal 7 website to drupal 8. They had a custom theme, so I used bootstrap subtheme to create the custom theme. They also had php in a lot of their content pages, so I installed the php filter module. Recently, I noticed that the following error gets displayed at the bottom of every page, after everything has loaded.
The website encountered an unexpected error. Please try again later.
Error: Call to undefined function drupal_add_css() in eval() (line 1 of modules/contrib/php/php.module(81) : eval()'d code)
I was wondering if anyone has any experience with this error, and how I can resolve this.
P.S. I realise that using php filter has some security risks, however due to the time constraint of the project, we have decided on using the module.
Thank you!
Comments
One of your nodes is using
One of your nodes is using that function in the node body. It doesn’t exist in Drupal 8 though so you’ll have to remove that line of code.
Contact me to contract me for D7 -> D10/11 migrations.