Symphony CMS File Upload Fatal Error - symphony-cms

I am simply trying to create a section that allows me to upload a file, specifically an image. I am able to create the section without any problems. The issue is when I make a new entry and choose the file. When I click save, to save the entry, I receive a very strange error:
Fatal error: Call to undefined function finfo_open() in
/home/jonlev19/jonathanlevis.dreamhosters.com/symphony/lib/toolkit/class.general.php
on line 934
I've searched around but have been unsuccessful in finding a solution to the problem. Does anyone have any ideas? Thank you in advance.

You need to enable the Fileinfo PHP extension.
Dreamhost instructions here. ;-)

Related

Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,I tried other FileUtils.cd ,FileUtils.chdir

Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,
Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,I tried other ways like FileUtils.cd ,FileUtils.chdir , still its showing file access issue in brakemanscan
I Tried system("cd dir_name") ,even this is also not working
Please help me to fix brakeman file access issue while changing directory

The file could not be saved Drupal

uploading images from desktop is fine but the problem is when i need to upload image from
mobile browser give me that error
the file 14343254.jpg could not be saved . an unknown error has occurred
the file in the Photo field was unable to be uploaded
photo field is required
I suggest you to use the devel module for that and in hook_file_presave($file) you should use dpm($file) to test if you get the file object. Try it like this:
function MYMODULE_file_presave($file){
dpm($file);
}
If file_presave doesn't work try the hook_file_insert($file).
Both will run if you press the upload button next to the file field or just hit the save button on node edit/add page and will output the file you uploaded to the screen as an object. If you don't have the devel module get it from here: http://drupal.org/project/devel or if you have drush drush dl devel. Try to check the server error log or the recent messages in drupal at Reports. You may have a duplicate entry for the file uri in the database. Check if you modify the uploaded files in one of your custom modules. I hope it helps you a bit.
i finally solved my problem after 1 week of searching
The problem is i am using aws ec2 server with 8GB volume and its 70% filled so images from mobile camera is large its generate unknown error so when i increase my volume to 50GB the problem is solved

Delete audio file from documents directory error

When I try to delete an audio file (.caf) from the documents directory i get that error:
Could not delete file -:The operation couldn’t be completed. (Cocoa error 4.)
I do the same with images and that is working, so the way I do it should be correct. Anyone knows what that error means?
My guess is that it has something to do with AVAudioPlayer? Do I need to kinda "close it" before to be able to delete or something?!
Thx
Error 4 seems to be NSNoSuchFileError - https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html#//apple_ref/doc/c_ref/NSFileNoSuchFileError
Are you sure you have the correct path?

Drupal's JS and CSS optimization error

I started getting errors after I turned on Drupal's performance improvements which pack all the CSS and JS files into single files. The error looks like this:
The selected file /tmp/fileO4fjBF
could not be uploaded, because the
destination
js/js_8a69e612be02242c2866a4a19223bd12.js
is not properly configured.
I'm not sure how I should configure my server for this to work correctly. There is nothing in the documentation about this.
Check you ' Site Configuration > Files' settings or the report. If it is a file permission issue (or maybe a missing folder) it should be apparent from one of those two places.
Often the report or files-settings also supply information on how to remedy the problem.

Error Connecting to Undo Manager of Source File XYZ

I've been getting an error recently while debugging an ASP.NET application in Visual Studio 2008:
'Error connecting to undo manager of source file XYZ'
Any idea how I can get rid of the error?
Even simpler:
My experiment consisted of simply opening the designer.cs file, typing a character somewhere in the file, deleting the new character, saving the file and recompiling.
Found on That One Developer Blog and it worked perfectly for me.
Wouldn't you know it; just after I post this I find a workaround in Scott Hanselman's Blog, in the comments:
1) Right-click the designer file and select delete
2) Right-click the aspx file and select Convert to Web Application
Thanks to Matthew, whomever you are.
I have face the same problem. And I solved it by exclude this file from project and rebuild solution. Then include this file again...DONE!
GOOD LUCK!
I faced the same error now. I had to just open the designer file while editing the aspx file and once done, save both. You don't even have to type any text in the designer. That did the trick!
this one has worked for me:--
"Open desiner.cs file Type some text in it Delete the text you have typed. Save and build the application"
Thanks a lot Jitendra Kumar!!
Open desiner.cs file
Type some text in it
Delete the text you have typed.
Save and build the application.
*** I know this is an old question, and already answered but i'am adding my answer , hopefully it would help someone
In my case the referred file was .cs class, and since there is no .desiner.cs file, i needed another solution
so the solution for my case was to navigate tho the solution folder in windows explorer and delete the .suo file , reopen the solution and rebuild
Closing the solution and deleting the Temporary ASP.Net files directory fixed this for me. [link]
I got this error when i double clicked an asp.net button by mistake and removed it afterwords in the aspx file and .cs file but not in the Designer.cs file. Make sure all the three got files got updated.

Resources