• Resolved katasyra

    (@katasyra)


    PHP Version 8.1.10
    Wordpress Version 6.0.2

    Cannot upload images to rooms.
    Rooms -> Rooms List -> Add New -> (Room Main Image, Extra Images) give this error:

    Fatal error: Uncaught Error: Call to undefined function imagetypes() in C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\admin\controller.php:1046 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\admin\controller.php(868): VikBookingController->do_createroom() #1 C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\libraries\adapter\mvc\controller.php(323): VikBookingController->createroom() #2 C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\libraries\system\body.php(55): JController->execute('createroom') #3 C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\vikbooking.php(199): VikBookingBody::process() #4 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(307): {closure}('') #5 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #6 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #7 C:\xampp\htdocs\wordpress\wp-settings.php(598): do_action('init') #8 C:\xampp\htdocs\wordpress\wp-config.php(96): require_once('C:\\xampp\\htdocs...') #9 C:\xampp\htdocs\wordpress\wp-load.php(50): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\wordpress\wp-admin\admin.php(34): require_once('C:\\xampp\\htdocs...') #11 {main} thrown in C:\xampp\htdocs\wordpress\wp-content\plugins\vikbooking\admin\controller.php on line 1046

Viewing 1 replies (of 1 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for pasting the full error details. The function imagetypes() is a native PHP function, available on any PHP version starting from PHP 4.0.2. However, this is part of the GD libraries, and maybe your local web-server with XAMPP does not support this function. This explains why imagetypes() is undefined.

    The most we can tell you is to play with the settings of XAMPP to enable the GD libraries and all its functions. You can find more information about this missing function in your web-server directly on the PHP official website at https://www.php.net/manual/en/function.imagetypes.php.

    The VikWP Team

Viewing 1 replies (of 1 total)

The topic ‘Images cannot be uploaded’ is closed to new replies.