We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6334
    • 2 Posts
    Someone please help, WebLoginPE displays this error when I try to register on my site. what do I need to do to resolve the issue.

    PHP error debug
      Error: 	imagejpeg() [function.imagejpeg]: Unable to open 
    
    '/home/onlinefi/public_html/assets/snippets/webloginpe/userimages/demo.jpg' for writing: Permission denied	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/onlinefi/public_html/assets/snippets/webloginpe/webloginpe.class.php	 
      Line: 	2573	 
      Line 2573 source: 	imagejpeg($image_p, $userImageFilePath, 100); 


    Thanks a lot
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The userimages folder needs to have write permissions.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6334
        • 2 Posts
        the userimages folder has the correct permission. I even had to change it to 777
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          And the permissions for demo.jpg?
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 18932
            • 1 Posts
            I am having what I suspect is the same error, although I should stress that I can register. What I cannot do is upload a user image.

            Initially I received the same error that DaGenius shows. I changed permissions on both my root directory and the /assets/snippets/webloginpe/userimages to 777. Now whenever I attempt to set a user image I encounter an internal server error.

            I have tried this both in IE6 and FF. IE6 displays a generic error 500 page (not from Modx) and FF just displays a blank page. After attempting to set the user image, the image file is present in the website root directory but not the userimages directory.

            I am running Modx rev 1.0.0 and WebLoginPE 1.3.1. I expect that I have fouled up some aspect of the configuration, but I don’t know how to pursue this. Any help would be greatly appreciated.