sarjon / gamifications

Customers loyalty module for PrestaShop 1.7.x
MIT License
8 stars 10 forks source link

Error 500 #5

Open Baroszek opened 6 years ago

Baroszek commented 6 years ago

Hello.

I install this module on my presta 1.7.3 I got php 7.1

I can't install from backoffice and load file from PC becouse is error.

But i send gamefications folder to the /modules and after check backoffice i got error 500.

When i ON debug mode it's error :

Compile Error: Gamifications::requireAutoloader(): Failed opening required '/var/www/prestashop/modules/gamifications/vendor/autoload.php' (include_path='/var/www/prestashop/vendor/pear/pear_exception:/var/www/prestashop/vendor/pear/console_getopt:/var/www/prestashop/vendor/pear/pear-core-minimal/src:/var/www/prestashop/vendor/pear/archive_tar:.:/usr/share/php')
500 Internal Server Error - FatalErrorException

Stack Trace
in modules/gamifications/gamifications.php at line 302   -
     */
    private function requireAutoloader()
    {
        require_once $this->getLocalPath().'vendor/autoload.php';
    }
}
Logs   -
1 error
INFO - The Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController class extends Symfony\Component\DependencyInjection\ContainerAware that is deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead.
INFO - Matched route "admin_module_manage".
DEBUG - Read existing security token from the session.
DEBUG - User was reloaded from a user provider.
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG - SELECT p0_.id AS id_0, p0_.id_employee AS id_employee_1, p0_.id_module AS id_module_2, p0_.date_add AS date_add_3, p0_.date_upd AS date_upd_4 FROM ps_module_history p0_ WHERE p0_.id_employee = ?
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Gamifications::requireAutoloader(): Failed opening required '/var/www/prestashop/modules/gamifications/vendor/autoload.php' (include_path='/var/www/prestashop/vendor/pear/pear_exception:/var/www/prestashop/vendor/pear/console_getopt:/var/www/prestashop/vendor/pear/pear-core-minimal/src:/var/www/prestashop/vendor/pear/archive_tar:.:/usr/share/php')" at /var/www/prestashop/modules/gamifications/gamifications.php line 302
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
DEBUG - SELECT name FROM ps_module WHERE active = 1
DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
backamblock commented 6 years ago

google for "webssh", you get the login data from your hosting service

login to your server. commands you need to change the folders is: cd the command ("LS" not "is") creates an overviev of folders and files in your current folder: ls 1. cd modules 2. git clone https://github.com/sarjon/gamifications.git 3. cd gamifications 4. composer install

thats it.

sarjon commented 6 years ago

Hi, you missed 2nd installation step. Before installing module, you should run composer install command. :)

Baroszek commented 6 years ago

Guys, do you know how to install this composer on debian 8, php 7.1 ? Because i'm not perfect with this so i don't know how to use this composer install.

Because when i use commend 'composer install' nothing happen. And when try install composer on my server is 'the phar extension is missing' but i got working phar on my php config.

So maybe you can help me something with that ? :(

backamblock commented 6 years ago

did you cd (change folder in ssh) to gamifications before launching the composer install? i have shared hosting so everything is installed, sorry i cant help you any further

sarjon commented 6 years ago

I have updated module with generated autoload files, there's no need to run composer install anymore.

SteaceP commented 6 years ago

Hey guys!

I tried to install the addons as explained in the ''readme''. I got this answer when I typed ''composer install'': Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files

For your information, yes I did it in the right directory. Gamifications, there is another one without a ''s''. I tried it wihout using the composer command and it doesn't appear in my addons list. I also tried to zip it, both of them, the one with the composer install apllied and the other one without it. I got: "500 Internal Server Error"

Help me please, I really want to use that addons. Thank you very much

I use: Prestashop 1.7.4.3 PHP 7.0.32 Ubuntu Server 16.04.1 Zend Engine v3.0.0, Zend OPcache v7.0.32 Apache 2.4.35 Pagespeed 1.13.35.2-stable

sarjon commented 6 years ago

hi @xsteacy, this module was not tested on PS 1.7.4.3. However, i cannot say why its not working, because error 500 Internal Server Error is too generic, you should enable debug mode on your shop and check for more accurate error. Let me know if you need more help. :)