Error message started to occur
5 posts by 2 authors in: Forums > CMS Builder
Last Post: August 1, 2018 (RSS)
Hi, All.
The following error message has started to occur when trying to upload an image to a section of my client's site:
Warning:chmod() has been disabled for security reasons in /var/www/vhosts/nithvalley.com/httpdocs/cmsAdmin/lib/upload_functions.php on line 481 Error changing permissions on '/var/www/vhosts/nithvalley.com/httpdocs/cmsAdmin/data/temp/thumb_UgboNq'! chmod() has been disabled for security reasons
Also, a textbox has disappeared! (See "Brief description" in attached screenshot.)
This is an established site that's using CMSB v3.07.
Anyone know a solution, please?
By daniel - July 30, 2018
Hi CommonSenseDesign,
I have a couple questions to help diagnose the issues you're experiencing:
- When encountering the chmod() error, does the image upload still complete? Or are you prevented entirely from uploading?
- Do any errors show in the developer console on the page with the missing text box? To check: navigate to the page in question, press F12 to open the browser developer tools, select the "Console" tab, and then reload the page.
Additionally, the screenshot is helpful, but I would suggest either removing the attachment or re-uploading it with the CMS URL and any visible usernames obfuscated. Making such information public could pose a security risk.
Thanks,
Technical Lead
interactivetools.com
Hi, Daniel.
- When encountering the chmod() error, does the image upload still complete? Or are you prevented entirely from uploading?
I'm unable to upload any images. The error message appears when I click the "Upload" button, so I don't even see "Save".
- Do any errors show in the developer console on the page with the missing text box? To check: navigate to the page in question, press F12 to open the browser developer tools, select the "Console" tab, and then reload the page.
I've attached a screengrab of what I see when I do what you suggested.
Cheers,
Nigel
By daniel - August 1, 2018
Hi Nigel,
Are you aware of any recent changes to your client's hosting environment, such as software updates or a server migration? The file upload issue appears to be due to PHP configuration, and if it was working previously, that indicates some behind the scenes change. Is there a hosting company you can contact to see if they have any insight? The specific problems that I see are A) the uploaded file is not being created with the correct read permissions, and B) the function chmod() has been disabled, preventing CMSB from fixing the permissions. If either of those issues can be resolved it should hopefully fix the file uploads.
I also suspect the missing text editor could be related. Could you please check the Developer Log page in CMSB (under Admin Menu) immediately after loading the page with the missing box and relay any error messages that appear?
Thanks,
Technical Lead
interactivetools.com
Thanks for this, Daniel. My client is checking with their hosting firm. I haven't worked on this site for more than a year, so you're probably right about some kind of server changes. There's no other reason I can think of that would cause the software to suddenly stop working properly.