Okay
  Public Ticket #1817671
Error: Internal server error
Closed

Comments

  • Vasile Liviu started the conversation

    Hi,

    Because prestashop 1.7.4 on version of php 5.6 was going slow I decided to upgrade to php 7.2.

    Now prestashop goes much faster in frontend and backend, but in backend i have an error with "FieldThemeConfiguration -> ManageMegaMenu"  i received: 500 internel server error.


    In log errors i received :

    HP Warning:  realpath(): open_basedir restriction in effect. File(/usr/local/bin) is not within the allowed path(s): (/home/vindecarecrisz12:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/vindecarecris1/public_html/src/PrestaShopBundle/Twig/Locator/ModuleTemplateLoader.php on line 49

    How can i solve this error ? I can't use the megamenu from theme.

    Thank you.

  •  1,588
    Criss replied

    Hi Vasile Liviu,

    1, First with the following error:

    HP Warning:  realpath(): open_basedir restriction in effect. File(/usr/local/bin) is not within the allowed path(s): (/home/vindecarecrisz12:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/vindecarecris1/public_html/src/PrestaShopBundle/Twig/Locator/ModuleTemplateLoader.php on line 49

    You need to contact the server vendor to fix it.

    2, The problem with the 500 error module in admin. please visit file:

    root / themes / name_modules / controller / admin / admin_file.php

    find: setMedia()

    edit = setMedia($isNewTheme = false)

    Best Regards,
    Criss - FieldThemes

  • Vasile Liviu replied

    Hi,

    setMedia() was already set false.


    About this

    HP Warning:  realpath(): open_basedir restriction in effect. File(/usr/local/bin) is not within the allowed path(s): (/home/vindecarecrisz12:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/vindecarecris1/public_html/src/PrestaShopBundle/Twig/Locator/ModuleTemplateLoader.php on line 49


    The answer from the host:
    Sorry, however, access to the / usr / local / bin location on shared services is not allowed, in order to access this location you need a VPS server

    For the moment i came back to the version of php 5.6


    Is there a cache plugin or something else running faster?


    Thank you.



  •  1,588
    Criss replied

    Hi Vasile Liviu,

    Please enable caching, smarty css, js, apache.

    Also make sure the image has been optimized and no problem found no image error.

    Best Regards,
    Criss - FieldThemes