Fatal error wordpress

rocco
18 Posts
rocco posted this 13 July 2021

Dear Support,
I have a fatal error using output template.
I've export wordpress theme and upload it into my fresh wordpress installations.
I've this error

You can see it from
www.palmitesta.com/preprod

From this error, I can't access into backend

Fatal error: Uncaught Error: Call to undefined function create_function() in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php:7 Stack trace: #0 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php(13): ThemeShortcodesStyles::putStyleClassname() #1 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-includes/template.php(730): require_once('...') #2 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-includes/template.php(676): load_template() #3 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/functions.php(457): locate_template() #4 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/functions.php(58): theme_include_lib() #5 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-settings.php(528): include('...') #6 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-config.php(96): require_once('...') #7 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-load.php(37): require_once('...') #8 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-blog-header.php(13): require_once('...') #9 /home/mhd-01/www.palmitesta.com/htdocs/preprod/index.php(17): require('...') #10 {main} thrown in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php on line 7

Dear Support, I have a fatal error using output template. I've export wordpress theme and upload it into my fresh wordpress installations. I've this error You can see it from www.palmitesta.com/preprod From this error, I can't access into backend Fatal error: Uncaught Error: Call to undefined function create_function() in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php:7 Stack trace: #0 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php(13): ThemeShortcodesStyles::putStyleClassname() #1 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-includes/template.php(730): require_once('...') #2 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-includes/template.php(676): load_template() #3 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/functions.php(457): locate_template() #4 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/functions.php(58): theme_include_lib() #5 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-settings.php(528): include('...') #6 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-config.php(96): require_once('...') #7 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-load.php(37): require_once('...') #8 /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-blog-header.php(13): require_once('...') #9 /home/mhd-01/www.palmitesta.com/htdocs/preprod/index.php(17): require('...') #10 {main} thrown in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php on line 7
Vote to pay developers attention to this features or issue.
9 Comments
Order By: Standard | Newest
rocco
18 Posts
rocco posted this 13 July 2021

this is the zip

this is the zip
Malinka
59 Posts
Malinka posted this 13 July 2021

Hi

I installed your theme and had no problem to activate theme. No error msg.

Print screen https://ibb.co/FWPFY39

Best regards
Malinka

Hi I installed your theme and had no problem to activate theme. No error msg. Print screen https://ibb.co/FWPFY39 Best regards Malinka

Last edited 13 July 2021 by Malinka

rocco
18 Posts
rocco posted this 13 July 2021

So, I've switch from php 8.0 to php 7.4 and it solved.
But.... is not compatible a themler template with 8?

and... I ve some warning into backend..

WP_Export_Theme_Installer_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/export/CoreUpdateHelper.php on line 20

Warning: Declaration of WP_Export_Upgrader_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/export/CoreUpdateHelper.php on line 51

So, I've switch from php 8.0 to php 7.4 and it solved. But.... is not compatible a themler template with 8? and... I ve some warning into backend.. WP_Export_Theme_Installer_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/export/CoreUpdateHelper.php on line 20 Warning: Declaration of WP_Export_Upgrader_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in /home/mhd-01/www.palmitesta.com/htdocs/preprod/wp-content/themes/myesis_ver01_fab/export/CoreUpdateHelper.php on line 51
rocco
18 Posts
rocco posted this 13 July 2021

the error message went away. Now I can work. One question: thmler will be updated to work fine to php 8?

the error message went away. Now I can work. One question: thmler will be updated to work fine to php 8?
Support Team
Support Team posted this 13 July 2021

Hello Rocco,

It should be working fine with PHP 8 if your theme is updated to the latest version.
Open it with Themler desktop, update to v520 and re-export, then re-install to WP.

Gina
Themler Support

Hello Rocco, It should be working fine with PHP 8 if your theme is updated to the latest version. Open it with Themler desktop, update to v520 and re-export, then re-install to WP. Gina Themler Support
rocco
18 Posts
rocco posted this 14 July 2021

Ok, I'll try.
Last question: from where I can download v520 for mac?
Best

Ok, I'll try. Last question: from where I can download v520 for mac? Best
Support Team
Support Team posted this 14 July 2021

The theme version is update in any of the Themler releases. You just need to open the theme in the desktop application and click Updates inside of it (on top). Make sure you have enabled receiving Beta Updates under your account on our site.

Gina
Themler Support

The theme version is update in any of the Themler releases. You just need to open the theme in the desktop application and click Updates inside of it (on top). Make sure you have enabled receiving Beta Updates under your account on our site. Gina Themler Support
kg900830
76 Posts
kg900830 posted this 18 May 2025

Se sei alla ricerca delle ultime news Psicologia, il portale Respira.re rappresenta una risorsa fondamentale per chi desidera approfondire tematiche legate alla salute mentale e al benessere psicologico. Con un approccio multidisciplinare, il sito offre articoli che spaziano dalle neuroscienze alla psicologia cognitiva, affrontando argomenti attuali e rilevanti.

Tra i contenuti più recenti, spicca l'annuncio del seminario “Neuroscienze e pratica clinica: punti di incontro”, previsto per il 29 maggio 2025 presso l’Ateneo Sigmund Freud di Milano. L'evento esplorerà l'interconnessione tra neuroscienze e c

Se sei alla ricerca delle ultime **[news Psicologia][1]**, il portale Respira.re rappresenta una risorsa fondamentale per chi desidera approfondire tematiche legate alla salute mentale e al benessere psicologico. Con un approccio multidisciplinare, il sito offre articoli che spaziano dalle neuroscienze alla psicologia cognitiva, affrontando argomenti attuali e rilevanti. Tra i contenuti più recenti, spicca l'annuncio del seminario “Neuroscienze e pratica clinica: punti di incontro”, previsto per il 29 maggio 2025 presso l’Ateneo Sigmund Freud di Milano. L'evento esplorerà l'interconnessione tra neuroscienze e c [1]: https://www.respira.re/
apkpurehub786
23 Posts
apkpurehub786 posted this 18 May 2025

The fatal error you're encountering is due to the use of the deprecated PHP function create_function() in your WordPress theme. This function was removed in PHP 8.0, and your server is likely running PHP 8 or higher.

Error Summary:


Fatal error: Uncaught Error: Call to undefined function create_function()...

What’s Causing It:

The theme file:


/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php

contains a line like:

php
create_function('$arg', 'some code here');

This syntax was allowed in older PHP versions, but PHP 8+ no longer supports it.


✅ Solution: Replace create_function() with anonymous functions (closures)

Step-by-Step Fix:

  1. Open the file:
    /wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php

  2. Go to line 7 — it probably looks something like:

    php
    $func = create_function('$param', 'return "something";');

  3. Replace it with an anonymous function:

    php
    $func = function($param) {
    return "something";
    };

  4. Repeat this process for any other uses of create_function() in your theme.


🛠️ Quick Workaround (if you can't access wp-admin):

If you want temporary access to the backend:

  • Rename the theme folder using FTP or your hosting panel:


    /wp-content/themes/myesis_ver01_fab → /wp-content/themes/myesis_ver01_fab_backup

  • WordPress will fall back to a default theme (like Twenty Twenty-Four), and you'll regain access.

Long-Term Fix:

  • Contact the theme developer and ask for a PHP 8-compatible version.
  • Or manually update all instances of create_function() (use your code editor's Find in files feature).

Would you like me to help rewrite the exact code from shortcodes-styles.php line 7 if you paste it here?

PLAYit APK

The fatal error you're encountering is due to the use of the deprecated PHP function `create_function()` in your WordPress theme. This function was **removed in PHP 8.0**, and your server is likely running PHP 8 or higher. ### Error Summary: ``` Fatal error: Uncaught Error: Call to undefined function create_function()... ``` ### What’s Causing It: The theme file: ``` /wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php ``` contains a line like: ```php create_function('$arg', 'some code here'); ``` This syntax was allowed in older PHP versions, but **PHP 8+ no longer supports it**. --- ### ✅ Solution: Replace `create_function()` with anonymous functions (closures) #### Step-by-Step Fix: 1. **Open the file**: `/wp-content/themes/myesis_ver01_fab/library/shortcodes-styles.php` 2. **Go to line 7** — it probably looks something like: ```php $func = create_function('$param', 'return "something";'); ``` 3. **Replace it with** an anonymous function: ```php $func = function($param) { return "something"; }; ``` 4. **Repeat** this process for any other uses of `create_function()` in your theme. --- ### 🛠️ Quick Workaround (if you can't access wp-admin): If you want temporary access to the backend: * Rename the theme folder using FTP or your hosting panel: ``` /wp-content/themes/myesis_ver01_fab → /wp-content/themes/myesis_ver01_fab_backup ``` * WordPress will fall back to a default theme (like Twenty Twenty-Four), and you'll regain access. --- ### Long-Term Fix: * Contact the theme developer and ask for a PHP 8-compatible version. * Or manually update all instances of `create_function()` (use your code editor's *Find in files* feature). --- Would you like me to help rewrite the exact code from `shortcodes-styles.php` line 7 if you paste it here? [PLAYit APK][1] [1]: https://apkpurehub.com/playit-app-download-apk/
You must log in or register to leave comments