Hi, an alternative way is to go inside the page and put the shortcode [wordpress_file_upload] manually.
Do you use any page builder?
Regards
Nickolas
Thread Starter
Madela
(@madela)
Hi,
I’ve just tried [wordpress_file_upload] inside the page and the instance is appearing at the back-end and on the page but when a go to modify the instance there is no update button for the shortcode and I can’t add a new PLugin instance either. In the main menu setting there is a button to update. When I upload a file there is an error saying… Unknown error Session failed (see below in french)
Mise en ligne impossible ! Erreur inconnue.
Échec de chemin de mise ne ligne : 001.png
fileupload:Session failed!
Session Data:
Array ( [wfu_ABSPATH] => /xxx/bxxxxxxxxx/xxxxxxxxxx/public_html/mydirectory/ )
Post Data:
Array ( [action] => wfu_ajax_action [wfu_uploader_nonce] => ed4108235e [uploadedfile_1_index] => 0 [uploadedfile_1_name] => 3030312e706e67 [uploadedfile_1_size] => 22969 [uniqueuploadid_1] => DA9iWCSlkv [params_index] => ESRw3NGzx5YcO91h [subdir_sel_index] => -1 [only_check] => 1 [session_token] => 37390481458c16586b9f0b3.37289940 ) force_errorabort_code
It’s a clean wordpress 4.7.3 installation with only wordpress file upload plugin installed.
Very strange.
Hi, please send me the URL of the page where you have the plugin to check.
Regards
Nickolas
Thread Starter
Madela
(@madela)
I do not see the upload form. What is the shortcode you use?
Nickolas
Thread Starter
Madela
(@madela)
Here is the shortcode used [wordpress_file_upload] I can see it http://livraisonjaak.com/dev_llvraison_jaak/page-d-exemple/
Madela
-
This reply was modified 9 years, 2 months ago by
Madela.
Ok I saw it.
The error is related to session variables. When a user opens a page in your website, a session between its browser and the website is created. This session stays open as long as the user keeps the browser open in your website.
The plugin uses this session in order to verify that the uploaded file came from that user and not a hacker.
The problem is that when the file is uploaded to your website there are no session data. For some reason they are reset.
You said this is a clean install right? Do you have any other plugins? If not, would it be possible to install another theme? Maybe it is related to the theme.
Nickolas
Thread Starter
Madela
(@madela)
Thank you Nickolas,
I’ve managed to solved it with what you pointed out of being related to session variables. I copied the php.ini file from my web server of another site in which your plugin was working correctly and everything is working now.
Thanks again!
Madela
Fantastic!
This means that the error was due to a php directive. Could you please tell me what were the differences between these 2 php.ini files? Or could you please send them to me to find myself?
Regards
Nickolas
Thread Starter
Madela
(@madela)
Hi Nickolas,
I just sent you the 2 php.ini files so you can see by yourself by email to info*iptanus.com. I changed on my service provider server to test changed to a higher php.ini version and I get the same problems as before. Then I put it back to php.ini 5.5 and everything works find again. I’ve checked 5.6 – 7.0 – 7.1 and the are not working.
Hope that helps
bests regards
Madela