Responsive filemanager upload error - php

I have a problem in my reponsive filemanager plugin. I am using this plugin. On my localhost version it running smoothly but after I upload on my Centos server I can't upload the documents running on MS Applications like (excel and ms word). It turns it into a zip folder.
My system runs on Codeigniter 3 HMVC and I also set the permissions of responsive filemanager (source and thumbs) permission to 777.
Images are working fine and txt. I also try to addType the ms application on my httpd.conf file and restart my server and it still same error.
Can you help me with my problem? I really want to use this plugin because it has a nice UI and settings. I don't know if it is a server problem.

I know its kinda late but this is how I solved this issue.
go into 'pathToFilemanager/include/mime_type_lib.php'
and comment or remove "application/zip" => "zip" from your $mime_types array.

Related

What are all the possible fixes to the error 'Unable to create directory /wp-content/uploads' when trying to upload images in Wordpress?

I am getting the following error
Unable to create directory /wp-content/uploads. Is its parent
directory writable by the server?
whenever I try to upload images via the Media tab in Wordpress. I am running on a LAMP setup, specifically on Ubuntu with Wordpress version 4.1.1. I'm working on a localhost site otherwise I would provide a link. I've tried all of the solutions that I have found and so far, none of them have worked.
Things I've tried:
I recursively changed the permissions of the wp-content folder to 777. (I'll downgrade the permissions to a safer setting after this problem is solved.)
I changed the group owner of the uploads folder to www-data as seen in this solution so that Apache would have group ownership of the folder.
I deleted the .htaccess file and resaved the permalinks setting.
I tried changing the uploads path in wp-config.php.
I asked this same question on the Wordpress forums and received one answer that I tried, but it didn't work for me. At this point I have no clue what to try. If anybody has an idea of what I need to do to get this to work it would be greatly appreciated.
When permissions or files become corrupted, it can often be worth re installing the WP core files from scratch, I recommend downloading the WP files from the codex site.
We often help clients with support via hangouts, please look us up at https://plus.google.com/+Myfavoritewebdesigns https://plus.google.com/+JoshuaJacoby/posts
Thanks!
My Favorite Web Designs
Joshua Jacoby
1006 N. 92nd Circle
Mesa, AZ 85207
Office: 480-335-1330
AZ WordPress Designer

Laravel Homested file upload performance issue

I am having a wierd problem with Laravel Homestead. After following all the steps(with success) in Laravel website to configure Homestead and setting up a small project I'm facing the following problem:
When uploading an image with intervention\image package it takes forever, and doesn't matter if it is a small or a big image
Already tried a different config using Vaprobash with Nginx too and the upload is super fast.
Is anyone out there facing the same problem or have some solution for me? (Going crazy here)
If the upload folder is a shared folder on your host, then you may want to enable nfs if you haven't already. You can do that by changing the lines in scripts/homestead.rb about shared folder to this (note the `type: "nfs"' has been added):
# Register All Of The Configured Shared Folders
settings["folders"].each do |folder|
config.vm.synced_folder folder["map"], folder["to"], type: "nfs"
end
More info can be found here: https://docs.vagrantup.com/v2/synced-folders/nfs.html.

Wordpress theme upload error PCLZIP_ERR_BAD_FORMAT

I'm new to php as well as wordpress however because of some need I had to work with wordpress only. So just to start I read a tutorial and created a wordpress theme of my own and when I tried to upload my theme I got the below error:
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Searching for the same I've found that usually the cause of such an error is maximum available space or upload file size issue. However since I'm working on localhost I don't think it could be the case. Moreover I've increased the upload_max_filesize, post_max_size and memory_limit as well. But still I'm getting the same error.
I'm using Wordpress 3.5.2.
This error due to you are trying to upload Other than ZIP Compressed version. Other format is not supported while uploading the plugin in wordpress.
You should unzip your plugin and make sure you compress with ZIP format and upload it will be working fine.
One of simple alternative is to download theme package, upzip it and upload through FTP whole theme folder into
/wp-content/themes
Then go to Admin CP and switch to new installed theme.
please check that only those file are here that you wan to upload. i was getting same problem, then i search on folder, there was already zip folder in it. after uploading that zip file. the problem was solved. Now the themes is activated.
I had this problem while trying to install Wordpress plugin from the Wordpress interface. Turns out the disk space quota was full for that specific account. I went to WHM manager and increased the quota and the problem was solved.
I got this error when I had the zip-plugin not installed. For Ubuntu/Debian and php7.4 (Bionic) you can use
apt-get install php7.4-zip
service php7.4-fpm restart
I had a similar problem when I was installing plugins for a theme. It appeared that in the meantime plugins' download url had changed, updating it solved the problem :)
I found one more case which may help you.
It throws the same error if the zip file is incomplete or corrupt.
This is because you are uploading the theme as a ".rar" file.
Convert the theme into ".zip" file and then upload it to your site.
For converting into the ".zip":
Right-click on the folder of your theme folder.
Select "Send to".
Click on "Compressed (zipped) folder".
Upload ".zip" file to your WordPress site.
I had the same issue, it turned out the problem was that the virtual server had exceeded its quota. (I'm using Virtualmin, and had a 1GB quota on that website's virtual server).
After increasing the quota, the problem went away.

jQuery File Upload plugin - Empty file upload result

I've been playing about with this plugin over the last few days, customising it and setting it up to work exactly as my site requires. I got it all working fine on my localhost server, with no errors/bugs. However, when I try to upload it to my Plesk server, no files are shown onload (even though there are images in the target folder), and when I try to upload im presented with the " Empty file upload result" error. Oddly.. the file upload seems to work even though its displaying the error, and the relevant images appear in the folder. So it seems to only he having a problem with reading, but not with writing?
I've checked the permissions of the files and thumbnails folder, and set them both to 777, so that cant be the issue.
I really cant see why this is working on my localhost server but not my Plesk server. Any help would be much appreciated.
Finally solved this issue. The problem was that my Plesk server was running a very old version of PHP. Updating it to 5.3 seems to have cleared up my issues.

iis7 serving .php file

I have a old php applications which was earlier hosted on Apache 2.2. Now I am trying to host it on IIS 7.5. I installed php with WebPlatform installer. Then copied directory to inetpub\wwwroot folder. Added this directory as application in IIS. But when I browse search.php, it pops up save as file dialog in the browser - asking to save the file. Instead should return the html response which browser can show.
If put sample index.php with phpInfo() in it. It works properly but not the acutal PHP files. Have I missed any steps?
Any php guys out there? I tried reinstalling, even with xampp, but no luck :(
You have installed it but might not be configured properly. You should follow instructions over here

Categories