Jump to content

include_once(): Failed opening '/var/wwwinit.php' Modulo paypal


Marco_n

Recommended Posts

Salve a tutti,

mi ritrovo spesso questo errore nei report:

[Tue Dec 20 11:37:32 2016] [error] [client 66.249.75.51] PHP Warning:  include_once(/var/wwwinit.php): failed to open stream: No such file or directory in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/en/food/138-pasta-gragnano-paccheri-igp-250g.html
[Tue Dec 20 11:37:32 2016] [error] [client 66.249.75.51] PHP Warning:  include_once(): Failed opening '/var/wwwinit.php' for inclusion (include_path='/var/www/tools/htmlpurifier/standalone:.:/usr/share/php:/usr/share/pear') in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/en/food/138-pasta-gragnano-paccheri-igp-250g.html
[Tue Dec 20 11:38:55 2016] [error] [client 93.47.216.209] PHP Warning:  include_once(/var/wwwinit.php): failed to open stream: No such file or directory in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/it/grappe/119-mazzetti-d-altavilla-emozioni-del-tempo-brandy-xo-invecchiato-oltre-20-anni-70cl.html
[Tue Dec 20 11:38:55 2016] [error] [client 93.47.216.209] PHP Warning:  include_once(): Failed opening '/var/wwwinit.php' for inclusion (include_path='/var/www/tools/htmlpurifier/standalone:.:/usr/share/php:/usr/share/pear') in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/it/grappe/119-mazzetti-d-altavilla-emozioni-del-tempo-brandy-xo-invecchiato-oltre-20-anni-70cl.html
[Tue Dec 20 11:46:38 2016] [error] [client 95.231.87.218] PHP Warning:  include_once(/var/wwwinit.php): failed to open stream: No such file or directory in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/it/grappe/124-bonaventura-maschio-grappa-the-queen.html
[Tue Dec 20 11:46:38 2016] [error] [client 95.231.87.218] PHP Warning:  include_once(): Failed opening '/var/wwwinit.php' for inclusion (include_path='/var/www/tools/htmlpurifier/standalone:.:/usr/share/php:/usr/share/pear') in /var/www/modules/paypal/express_checkout/ajax.php on line 28, referer: http://www.bnitalianfood.com/it/grappe/124-bonaventura-maschio-grappa-the-queen.html

Non mi sembrano esserci errori nel modulo sinceramente:

<?php
/**
 * 2007-2016 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author    PrestaShop SA <[email protected]>
 *  @copyright 2007-2016 PrestaShop SA
 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */

include_once dirname(__FILE__).'/../../../config/config.inc.php';
include_once _PS_ROOT_DIR_.'init.php';
include_once dirname(__FILE__).'/../paypal.php';

// Ajax query
$quantity = Tools::getValue('get_qty');

if (Configuration::get('PS_CATALOG_MODE') == 1) {
    die('0');
}

if ($quantity && $quantity > 0) {
    /* Ajax response */
    $id_product = (int) Tools::getValue('id_product');
    $id_product_attribute = (int) Tools::getValue('id_product_attribute');
    $product_quantity = Product::getQuantity($id_product, $id_product_attribute);
    $product = new Product($id_product);

    if (!$product->available_for_order) {
        die('0');

la riga 28 dovrebbe essere : "include_once _PS_ROOT_DIR_.'init.php'; "

 

Provero ad aggiungere una "/" e vediamo.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...