Notifications
Clear all

Type E_ERROR when Updating Plugins

9 Posts
3 Users
1 Likes
1,683 Views
Posts: 2
Topic starter
(@jstraete)
New Member
Joined: 3 years ago

I was updating a couple of plugins through the Dashboard -> Updates page (not Advanced iFrame Pro) and I got an error message after the updates were done related to the Advanced iFrame Pro plugin, which also came to my email:

 

Error Details

=============

An error of type E_ERROR was caused in line 868 of the file /home/jstraete/public_html/wp-content/plugins/advanced-iframe/advanced-iframe.php. Error message: Uncaught Error: Call to undefined function printError() in /home/jstraete/public_html/wp-content/plugins/advanced-iframe/advanced-iframe.php:868

Stack trace:

#0 /home/jstraete/public_html/wp-content/plugins/advanced-iframe/advanced-iframe.php(808): advancediFrame->handleWorkaroundFile('ai_external.js', '/**\r\n *  Advanc...', true)

#1 /home/jstraete/public_html/wp-content/plugins/advanced-iframe/advanced-iframe.php(62): advancediFrame->saveExternalJsFile()

#2 /home/jstraete/public_html/wp-includes/class-wp-hook.php(294): advancediFrame->aiUpdate(Object(Plugin_Upgrader))

#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)

#4 /home/jstraete/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)

#5 /home/jstraete/public_html/wp-admin/includes/class-plugin-upgrader.php(371): do_action('upgrader_proces...', Object(Plugin_Upgrader), Array)

#6 /home/jstraete/public_html/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade(Array)

#7 {main}

  thrown

 

My Site Details:

WordPress version 5.7.1

Current theme: Storefront Child Theme (version 1.0)

Current plugin: Advanced iFrame Pro (version 2021.3)

PHP version 8.0.3

8 Replies
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

Seems the ai_external.js cannot be created on your system.

Please delete under js/ai_external.js and let the plugin recreate this file.

Best regards, Michael

Reply
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

I will also update the plugin that you get the proper error message. php 8 is causing here issues because some calls are not allowed anymore.

Reply
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

I have a new version available. Can you please test this? I have php 8 but i don't have the issues that I cannot write the file.

Can you provide a e-mail that accept zip files so I can sent it to you?

I think you had the issue maybe before but I have added a new hock that files that needed to be generated are also generated at a update. Before you needed to save the administration manually.

Best regards, Michael

Reply
Posts: 2
Topic starter
(@jstraete)
New Member
Joined: 3 years ago

You can email me at jesse@nhreq.com. If I delete the ai_external.js file in my plugin folder then my iframes won't work, so how do I get the plugin to recreate the file once I delete it so that they will work again? Everytime I update the plugin, I rename the folder for the current version to advanced-iframe-old, then import in the folder of the updated version to the server, and then move the ai_external.js file from the old folder to the new one so that the iframes I've already created continue to work.

Reply
Page 1 / 2