OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems Failed to create /var/www/crm-application/app/../web/bundles/jsformvalidation/js

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25729

    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
  • #25730

    Josh
    Participant

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

    #25731

    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…

    #25732

    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

    #25733

    Han Leenders
    Participant

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

    #25734

    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)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top