Jump to content

1.7 ContextErrorException... help, please!


Recommended Posts

Hi! I tried to do the 1-click update, but it went with errors. I recover the ftp and db backup, but now instead the admin login page I have the following:

ContextErrorException in PrestaShopExtension.php line 49: Notice: Undefined index: prestatrust in PrestaShopExtension.php line 49
at ErrorHandler->handleError('8', 'Undefined index: prestatrust', '/var/www/public_html/pinswear.pl/public_html/src/PrestaShopBundle/DependencyInjection/PrestaShopExtension.php', '49', array('configs' => array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), 'container' => object(ContainerBuilder), 'configuration' => object(AddOnsConfiguration), 'config' => array('addons' => array('api_client' => array('ttl' => '300', 'verify_ssl' => '/var/www/public_html/pinswear.pl/public_html/app/cache/dev/cacert.pem'))), 'loader' => object(YamlFileLoader))) in PrestaShopExtension.php line 49
    at PrestaShopExtension->load(array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59
    at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39
    at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102
    at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 583
    at ContainerBuilder->compile() in bootstrap.php.cache line 2754
    at Kernel->initializeContainer() in bootstrap.php.cache line 2529
    at Kernel->boot() in bootstrap.php.cache line 2560
    at Kernel->handle(object(Request), '1', false) in index.php line 86

It's PS 1.7. Can anyone please help me how to fix it?

Link to comment
Share on other sites

  • 4 months later...

I have the same problem after upgrading from 1.7.3.4 to 1.7.4.0 in debug mode

Whoops, looks like something went wrong.
(1/1) ContextErrorException
Warning: file_exists(): open_basedir restriction in effect. File(/pub/fenozawa/composer.json) is not within the allowed path(s): (/pub/fenozawa/my-web.eu:/pub/fenozawa/_include)

in Kernel.php line 362
at Kernel->getProjectDir()
in Kernel.php line 710
at Kernel->getKernelParameters()
in AppKernel.php line 81
at AppKernel->getKernelParameters()
in Kernel.php line 822
at Kernel->getContainerBuilder()
in Kernel.php line 770
at Kernel->buildContainer()
in Kernel.php line 640
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request), 1, false)
in index.php line 88

Link to comment
Share on other sites

4 hours ago, DARKF3D3 said:

Did you fixed the problem?

No :(

I think there are bad paths to some debug files, because some directories have changed with upgrade, for example, the /cache, but unfortunately I do not yet know where the problem :(

Link to comment
Share on other sites

  • 2 weeks later...
On 2/3/2018 at 2:20 AM, karola said:

Hi! I tried to do the 1-click update, but it went with errors. I recover the ftp and db backup, but now instead the admin login page I have the following:

ContextErrorException in PrestaShopExtension.php line 49: Notice: Undefined index: prestatrust in PrestaShopExtension.php line 49
at ErrorHandler->handleError('8', 'Undefined index: prestatrust', '/var/www/public_html/pinswear.pl/public_html/src/PrestaShopBundle/DependencyInjection/PrestaShopExtension.php', '49', array('configs' => array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), 'container' => object(ContainerBuilder), 'configuration' => object(AddOnsConfiguration), 'config' => array('addons' => array('api_client' => array('ttl' => '300', 'verify_ssl' => '/var/www/public_html/pinswear.pl/public_html/app/cache/dev/cacert.pem'))), 'loader' => object(YamlFileLoader))) in PrestaShopExtension.php line 49
    at PrestaShopExtension->load(array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59
    at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39
    at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102
    at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 583
    at ContainerBuilder->compile() in bootstrap.php.cache line 2754
    at Kernel->initializeContainer() in bootstrap.php.cache line 2529
    at Kernel->boot() in bootstrap.php.cache line 2560
    at Kernel->handle(object(Request), '1', false) in index.php line 86

It's PS 1.7. Can anyone please help me how to fix it?

 

Hi Karola,

I have the same issue: 1-click update from 1.7.3 to 1.7.4.1 with errors...

Did you fixed the problem?

Thanks

 

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