Notifications
Clear all

Script [Solved] Uploading and Embedding images

78 Posts
20 Users
20 Reactions
75.3 K Views
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

I'm sorry but I have no clue, this code works on dozens of websites without any issue, something is irregular on your website. Try to put it in the parent theme functions.php file, also try to remove the php end code ?>

Posts: 9
(@carsheadline)
Active Member
Joined: 7 years ago
Posted by: Robert

I'm sorry but I have no clue, this code works on dozens of websites without any issue, something is irregular on your website. Try to put it in the parent theme functions.php file, also try to remove the php end code ?>

I've done that. Have you had anyone using the code on WordPress 4.9?

I also installed a third party plugin for PHP code and it said the code causes a fatal error.

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Please provide the fatal error message. This is not 4.9 compatibility issue. Something is irregular with your PHP, some extensions are not enabled or something else...

Also make sure you don't have function with identical name in other files. Function names should be unique.

Posts: 9
(@carsheadline)
Active Member
Joined: 7 years ago
Posted by: Robert

Please provide the fatal error message. This is not 4.9 compatibility issue. Something is irregular with your PHP, some extensions are not enabled or something else...

Also make sure you don't have function with identical name in other files. Function names should be unique.

Here's the error message provided to me by the plugin (it's the PHP inserter plugin): 

"Sorry, but your code causes a "Fatal error", so it is not applied!
Please, check the code and try again."

I'm not sure what you mean by making sure I don't have a function with an identical name?

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

This is not the fatal error message. This says nothing.

Page 7 / 14