When I activate mediapress, it gives me this error:
I use PHP 8.2.2 and the newest everything =(Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/common/mpp-common-functions.php:790 Stack trace: #0 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/common/mpp-common-functions.php(790): array_map(‘trim’, ”) #1 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/common/mpp-common-functions.php(760): mpp_get_all_media_extensions() #2 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/common/class-mpp-taxonomy.php(188): mpp_get_media_extensions(‘photo’) #3 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/api/mpp-api.php(181): MPP_Type->__construct(Array) #4 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/mpp-init.php(88): mpp_register_type(Array) #5 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/class-wp-hook.php(308): mpp_setup_core(”) #6 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/api/mpp-actions-api.php(87): do_action(‘mpp_setup’) #9 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/class-wp-hook.php(308): mpp_setup(”) #10 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #11 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-settings.php(617): do_action(‘init’) #13 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-config.php(85): require_once(‘/customers/6/f/…’) #14 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-load.php(50): require_once(‘/customers/6/f/…’) #15 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-admin/admin.php(34): require_once(‘/customers/6/f/…’) #16 /customers/6/f/f/ourefriskole.dk/httpd.www/wp-admin/plugins.php(10): require_once(‘/customers/6/f/…’) #17 {main} thrown in /customers/6/f/f/ourefriskole.dk/httpd.www/wp-content/plugins/mediapress/core/common/mpp-common-functions.php on line 790
Hi Danny,
I am very sorry for the trouble.Please upgrade to 1.5.4, we have tested the plugin till PHP 8.1.2.
Please let me know if you face any issue.
Thank you
BrajeshHi again.
Thankfully I had a back-up of the website I was encountering problems on.
So I could re-roll the website.Now Mediapress wont “Allow users to uploading from Activity screen?”
Theres no pictagrams, showing anymore. In the new update.Hi Danny,
Thank you for the reply. I am glad that you had a backup and could restore.1. Please make sure to upgrade to 1.5.4
2. Please visit dashboard->MediaPress->settings->General and check for extensions, are the extensions there?My assumption is, the file extensions are missing from your settings causing this. You can put a list of comma separated extensions eg. jpeg,jpg,gif,png etc and save.
That should fix it.
Regards
BrajeshOh.
Im sorry..
I didn’t enable the group galleries, under settings, after I did a reset to default.My mistake.
I translated mediapress into Danish. Its pending as we speak.
Hi Danny,
No issues.
I am glad it worked.Thank you for your contribution of MediaPress translation.
Regards
Brajesh
The topic ‘ [Resolved] Fatal error’ is closed to new replies.