ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 5 replies, has 5 voices, and was last updated by Damien LE TROHER Damien LE TROHER 3 years, 11 months ago.

  • Creator
    Topic
  • #475

    ickmund
    Participant

    Have not tested thoroughly, but each form I’ve tried so far has this issue (test: editing my profile and adding a contact). While the above path does not exists (/var/www/crm-application/app/../web/bundles/jsformvalidation/js), the bundle with an oro prefix does (Failed to create /var/www/crm-application/app/../web/bundles/orojsformvalidation/js).

    Here’s the actual error:

    CRITICAL – Twig_Error_Runtime: An exception has been thrown during the rendering of a template (“Failed to create /var/www/crm-application/app/../web/bundles/jsformvalidation/js/”) in “OroCRMAccountBundle:Account:update.html.twig” at line 49. (uncaught exception) at /var/www/crm-application/app/cache/dev/classes.php line 10035

    CRITICAL – Twig_Error_Runtime: An exception has been thrown during the rendering of a template (“Failed to create /var/www/crm-application/app/../web/bundles/jsformvalidation/js/”) in “/var/www/crm-application/vendor/oro/platform/src/Oro/Bundle/UserBundle/Resources/views/User/update.html.twig” at line 11. (uncaught exception) at /var/www/crm-application/app/cache/dev/classes.php line 10035

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #484

    Josh
    Participant

    I had a similar error, had to chmod my web/bundles directory to 777, which seemed to fix the problem.

    #624
    Melvyn Sopacua
    Melvyn Sopacua
    Participant

    I don’t think it’s the correct solution. The install.sh seems to suggest that only app/cache and app/logs should be webserver writable.

    The problem seems to be two-fold. First, the dirname isn’t correct as OP noted and secondly, these files should’ve been created by Twig during installation. Investigating…

    #626
    Melvyn Sopacua
    Melvyn Sopacua
    Participant

    I’ve read up a bit on Twig and it looks like it dynamically creates javascript files if they don’t exist, based on the router for the form. It doesn’t look like an easy job to get those generated during installation. The install.sh script should probably be ammended to include:
    mkdir -p -m 777 web/bundles/jsformvalidation

    #675

    Han
    Participant

    Thnx, mkdir -p -m 777 web/bundles/jsformvalidation did the trick.

    #1043
    Damien LE TROHER
    Damien LE TROHER
    Participant

    Hello all !

    I think 777 is an error… It is totally unsecure. You should change the owner of this folder.

    For example, if your apache user is “www-apache” and its group is “www”, you have to use :

    Why you have to do that :
    You execute install.sh as a user (for example : “damien” of group “users”)
    All files and folders created are for damien:users.
    That’s wrong because apache user is probably not “damien” of group “users”.


    Damien LE TROHER
    SYNOLIA – Division Ecommerce

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.