• Hi,
    i don’t understand what is the problem
    i am a noob. I ve done my first site but now I have a “fatal error”.
    what can i do?

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function TrustindexPlugin::__construct(), 4 passed in /home/mhd-01/www.villahermaea.com/htdocs/wp-content/plugins/review-widgets-for-airbnb/review-widgets-for-airbnb.php on line 52 and exactly 5 expected in /home/mhd-01/www.villahermaea.com/htdocs/wp-content/plugins/review-widgets-for-booking-com/trustindex-plugin.class.php:10 Stack trace: #0 /home/mhd-01/www.villahermaea.com/htdocs/wp-content/plugins/review-widgets-for-airbnb/review-widgets-for-airbnb.php(52): TrustindexPlugin->__construct('airbnb', '/home/mhd-01/ww...', '4.2.2', 'Widgets for Air...') #1 /home/mhd-01/www.villahermaea.com/htdocs/wp-settings.php(377): include_once('/home/mhd-01/ww...') #2 /home/mhd-01/www.villahermaea.com/htdocs/wp-config.php(90): require_once('/home/mhd-01/ww...') #3 /home/mhd-01/www.villahermaea.com/htdocs/wp-load.php(37): require_once('/home/mhd-01/ww...') #4 /home/mhd-01/www.villahermaea.com/htdocs/wp-blog-header.php(13): require_once('/home/mhd-01/ww...') #5 /home/mhd-01/w in /home/mhd-01/www.villahermaea.com/htdocs/wp-content/plugins/review-widgets-for-booking-com/trustindex-plugin.class.php on line 10

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @delfino1989
    You have a problem in the file review-widgets-for-airbnb.php, line 52.
    Seems that it is trying to create an instance of TrustindexPlugin class passing 4 parameters instead of 5.
    If it is your code, you will need to figure out what parameters are expected by TrustindexPlugin class constructor.
    If not your code, contact the plugin creator and in the meantime disable the plugin.

    Hope this helps. Take care.

    Hello @delfino1989

    as mentioned by @eltobiano) review-widgets-for-airbnb plugin is the culprit. You can temporarily deactivate the plugin to be able to access your site.

    In most cases you might be using the old version of the plugin which you can update to the most recent version to resolve the issue or reach out to the plugin developers for further assistance.

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fatal error’ is closed to new replies.