• Hi, I am very new to this and I am trying to upload extra images for a car. However, every time I do so, the site encounters a critical error and I am unable to upload anything.

    I came across some missing GD library and I tried installing WebP Express Plugin. In that plugin, it seems that the GD extension is enabled so I am unsure of what might be causing this fatal error nor how to fix it.


    I got the following error in my email and could not understand how to rectify the error. Any assistance is greatly appreciated and thank you in advance!

    Error Details
    =============
    An error of type E_ERROR was caused in line 8864 of the file /srv/htdocs/wp-content/plugins/vikrentcar/site/helpers/lib.vikrentcar.php. Error message: Uncaught TypeError: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given in /srv/htdocs/wp-content/plugins/vikrentcar/site/helpers/lib.vikrentcar.php:8864
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/vikrentcar/site/helpers/lib.vikrentcar.php(8864): imagecopyresampled(Object(GdImage), false, 0, 0, 0, 0, 100, 76, 500, 380)
    #1 /srv/htdocs/wp-content/plugins/vikrentcar/admin/controller.php(1792): VikResizer::proportionalImage('/srv/htdocs/wp-...', '/srv/htdocs/wp-...', 100, 100)
    #2 /srv/htdocs/wp-content/plugins/vikrentcar/admin/controller.php(1662): VikRentCarController->do_updatecar(true)
    #3 /srv/htdocs/wp-content/plugins/vikrentcar/libraries/adapter/mvc/controller.php(323): VikRentCarController->updatecarapply()
    #4 /srv/htdocs/wp-content/plugins/vikrentcar/libraries/system/body.php(55): JController->execute('updatecarapply')
    #5 /srv/htdocs/wp-content/plugins/vikrentcar/vikrentcar.php(186): VikRentCarBody::process()
    #6 /wordpress/core/6.1.1/wp-includes/class-wp-hook.php(308): {closure}('')
    #7 /wordpress/core/6.1.1/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #8 /wordpress/core/6.1.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /wordpress/core/6.1.1/wp-settings.php(617): do_action('init')
    #10 /srv/htdocs/wp-config.php(83): require_once('/wordpress/core...')
    #11 /wordpress/core/6.1.1/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #12 /wordpress/core/6.1.1/wp-admin/admin.php(34): require_once('/wordpress/core...')
    #13 {main}
      thrown
  • The topic ‘Critical Error – Uploading Extra Images for Cars List’ is closed to new replies.