• Resolved jankyz

    (@jankyz)


    Hello,

    I have problem with plugin after installation. Plugin can not run and I have this kind of message:

    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 885
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 890
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 885
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 890
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/controllers/admin/ups-eu-woo-admin-config-controller.php on line 21
    
    Warning: include_once(/ups-eu-woo-autoloader.php): failed to open stream: No such file or directory in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/controllers/admin/ups-eu-woo-admin-config-controller.php on line 21
    
    Warning: include_once(): Failed opening '/ups-eu-woo-autoloader.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/controllers/admin/ups-eu-woo-admin-config-controller.php on line 21
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 885
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 890
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-config.php on line 21
    
    Warning: include_once(/ups-eu-woo-autoloader.php): failed to open stream: No such file or directory in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-config.php on line 21
    
    Warning: include_once(): Failed opening '/ups-eu-woo-autoloader.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-config.php on line 21
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 885
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 890
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/entities/ups-eu-woo-model-entity-config.php on line 21
    
    Warning: include_once(/ups-eu-woo-autoloader.php): failed to open stream: No such file or directory in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/entities/ups-eu-woo-model-entity-config.php on line 21
    
    Warning: include_once(): Failed opening '/ups-eu-woo-autoloader.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/entities/ups-eu-woo-model-entity-config.php on line 21
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 885
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/ups-eu-woo-autoloader.php on line 890
    
    Warning: dirname() expects exactly 1 parameter, 2 given in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-data-base.php on line 21
    
    Warning: require_once(/ups-eu-woo-autoloader.php): failed to open stream: No such file or directory in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-data-base.php on line 21
    
    Fatal error: require_once(): Failed opening required '/ups-eu-woo-autoloader.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/sprzedawaj/domains/socialandmore.pl/public_html/webdemo/goldme_shop/wp-content/plugins/ups-eu-woocommerce/src/models/ups-eu-woo-model-data-base.php on line 21

    It was a problem with PHP version, unfortunately Plugin needs PHP version 7.0.0 and higher, because dirname() method using two parameters.

    Info from docs
    7.0.0 Added the optional levels parameter.

    • This topic was modified 5 years, 2 months ago by jankyz. Reason: Problem resolved
  • The topic ‘Problem with Plugin Activation’ is closed to new replies.