Jump to content

bug prestashop 1.7.5


capsys

Recommended Posts

Whoops, looks like something went wrong.

(1/1) FatalErrorException
Compile Error: require(): Failed opening required 'C:\wamp64\www\capsysshop\var\cache\dev\ContainerBnxpnuw\removed-ids.php' (include_path='C:\wamp64\www\capsysshop\vendor/pear/pear_exception;C:\wamp64\www\capsysshop\vendor/pear/console_getopt;C:\wamp64\www\capsysshop\vendor/pear/pear-core-minimal/src;C:\wamp64\www\capsysshop\vendor/pear/archive_tar;.;C:\php\pear')

in appDevDebugProjectContainer.php line 1185
at appDevDebugProjectContainer->getRemovedIds()in Container.php line 184
at appDevDebugProjectContainer->set()in Kernel.php line 585
at AppKernel->initializeContainer()in Kernel.php line 135
at AppKernel->boot()in Kernel.php line 195
at AppKernel->handle()in index.php line 88
at {main}()in index.php

 

Link to comment
Share on other sites

Cache clear process is incomplete maybe due to max execution time exceeded.

You need to clear it manually, you can do it by delete all folders and files in /var/cache/ on your FTP. This files will be regenerated by Prestashop automatically.

If you can use command line on your server, you also can execute this command :

php -d memory_limit=-1 ./bin/console cache:clear
php -d memory_limit=-1 ./bin/console cache:clear --env=prod

 

Link to comment
Share on other sites

merci de votre réponse rapide. j'ai regardé dans mon dossier cache et je retrouve 3 dossiers:

de_      dev      prod 

faut il que je les suppriment svp. Et les commandes à exécuter sur mon serveur je les changent dans quelle dossier car je comprend pas.

 

 

Link to comment
Share on other sites

c'est bon, j'ai supprimer mes 3 dossiers. Je travaille avec wamp comme serveur et sql en base de données. Le FTP, je le trouve ou svp. J'ai trouvé ce dossier dans mon www


 

<?php

/**
 * Validates ftp (File Transfer Protocol) URIs as defined by generic RFC 1738.
 */
class HTMLPurifier_URIScheme_ftp extends HTMLPurifier_URIScheme
{
    /**
     * @type int
     */
    public $default_port = 21;

    /**
     * @type bool
     */
    public $browsable = true; // usually

    /**
     * @type bool
     */
    public $hierarchical = true;

    /**
     * @param HTMLPurifier_URI $uri
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return bool
     */
    public function doValidate(&$uri, $config, $context)
    {
        $uri->query = null;

        // typecode check
        $semicolon_pos = strrpos($uri->path, ';'); // reverse
        if ($semicolon_pos !== false) {
            $type = substr($uri->path, $semicolon_pos + 1); // no semicolon
            $uri->path = substr($uri->path, 0, $semicolon_pos);
            $type_ret = '';
            if (strpos($type, '=') !== false) {
                // figure out whether or not the declaration is correct
                list($key, $typecode) = explode('=', $type, 2);
                if ($key !== 'type') {
                    // invalid key, tack it back on encoded
                    $uri->path .= '%3B' . $type;
                } elseif ($typecode === 'a' || $typecode === 'i' || $typecode === 'd') {
                    $type_ret = ";type=$typecode";
                }
            } else {
                $uri->path .= '%3B' . $type;
            }
            $uri->path = str_replace(';', '%3B', $uri->path);
            $uri->path .= $type_ret;
        }
        return true;
    }
}

// vim: et sw=4 sts=4


 

 

Link to comment
Share on other sites

  • 1 year later...
On 6/3/2019 at 10:39 AM, Janett said:

Cache clear process is incomplete maybe due to max execution time exceeded.

You need to clear it manually, you can do it by delete all folders and files in /var/cache/ on your FTP. This files will be regenerated by Prestashop automatically.

If you can use command line on your server, you also can execute this command :


php -d memory_limit=-1 ./bin/console cache:clear
php -d memory_limit=-1 ./bin/console cache:clear --env=prod

 

you are an absolute legend, this has saved me from pulling all my hair out

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...