• Resolved packi93

    (@packi93)


    Hi.

    When I try to add a photo to item image, plugin show me this error

    `Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\site\helpers\lib.vikrentitems.php:7777 Stack trace: #0 C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\admin\controller.php(1807): VikResizer::proportionalImage(‘C:\\xampp\\htdocs…’, ‘C:\\xampp\\htdocs…’, 200, 200) #1 C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\admin\controller.php(1710): VikRentItemsController->do_updateitem() #2 C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\libraries\adapter\mvc\controller.php(323): VikRentItemsController->updateitem() #3 C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\libraries\system\body.php(55): JController->execute(‘updateitem’) #4 C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\vikrentitems.php(186): VikRentItemsBody::process() #5 C:\xampp\htdocs\kamila_wozki\wp-includes\class-wp-hook.php(307): {closure}(”) #6 C:\xampp\htdocs\kamila_wozki\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 C:\xampp\htdocs\kamila_wozki\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #8 C:\xampp\htdocs\kamila_wozki\wp-settings.php(598): do_action(‘init’) #9 C:\xampp\htdocs\kamila_wozki\wp-config.php(96): require_once(‘C:\\xampp\\htdocs…’) #10 C:\xampp\htdocs\kamila_wozki\wp-load.php(50): require_once(‘C:\\xampp\\htdocs…’) #11 C:\xampp\htdocs\kamila_wozki\wp-admin\admin.php(34): require_once(‘C:\\xampp\\htdocs…’) #12 {main} thrown in C:\xampp\htdocs\kamila_wozki\wp-content\plugins\vikrentitems\site\helpers\lib.vikrentitems.php on line 7777
    W witrynie wyst?pi? b??d krytyczny. W wiadomo?ci wys?anej na adres e-mail administratora strony umieszczono dodatkowe instrukcje.`

    I have page in localhost on xampp. Can U Help me?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for reporting your full error log. It looks like your XAMPP installation is missing the GD libraries.

    As you can see from the official PHP documentation of that missing function at the link https://www.php.net/manual/en/function.imagecreatetruecolor.php, the GD libraries are included by default in any PHP build, but they may be disabled. This looks like it’s your case.

    You should look up on the Internet how to enable the GD libraries in XAMPP to solve that problem.

    We hope this helps!

    The VikWP Team

    Thread Starter packi93

    (@packi93)

    Hi again.

    This is how is solved my problem:

    Opened file PHP.ini, found line ;extension=gd and delated sign “;” before it. Now it works great! Thank U for show me the way how to do it ??

    • This reply was modified 2 years, 5 months ago by packi93.
    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for posting the resolution for XAMPP. The GD extension was commented in your PHP.ini and so you did good by removing the command symbol!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error when I try to add a photo’ is closed to new replies.