Can't find uploaded file on wordpress - php

I have uploaded a php file on wordpress, although I can edit and update the file from WP File Manager I am unable to find the page on the internet.
When I see the info of the file, it displays a link to the file and that link leads to nowhere, it says "500:Internal Error".
I have also uploaded a html type file to my WP File Manager which is accessible from the internet, but the php file is not.
This is the link to the file which I uploaded.
Any help would be appreciated.
This is the screenshot of my WP File Manager

I have just clicked the link to the chimp.php file and it loaded fine so I dont see an issue here. Sometimes I have noticed that uploads are not instantaneous, and can take a few minutes before the changes take affect.

Ok now I see a 500 error but the url path isn't including the kirti extension. Just want to narrow down the problem but have you created the page in the wp-admin page menu?

Related

What are possible reasons that HTML download link is failing?

I created a page for users to download certain files. I used the HTML download link to do this as so:
<a download href="/home/Uploads/someDir/someFile.PNG" >View</a>
This worked fine when I was developing on my laptop with WAMP. When I uploaded the code to our Centos 7 Server it did not work. I changed the Uploads, someDir, and someFile.PNG permissions to 777. I also made sure that the file path was correct. But the when the download link is pressed the file icon at the bottom of the screen says "Failed no file".
Maybe I need to do more with the permissions. I know that the folder that the html file is in has restricted permissions, but I would prefer to keep them that way. I do not know how that could cause an issue.
I am looking for debugging tips/possible causes. At this point I am clueless where to look.
The issue with the download not working is simply due to the fact that the path to your file is wrong. My advice on your root directory which is in most cases is var/www/html, create a folder called say somefoldername and manually upload the file to that folder then change the download link to be
View.
"Failed no file" has nothing to do with permissions. The path to your download file has most likely changed when the files were uploaded to the server. You should manually check to see if the file at
/home/Uploads/someDir/someFile.PNG
actually exists. If not you can change the link accordingly or move the download file to the appropriate location.
Another good alternative to solve this error is to put a dot '.' at the beginning of the url:
<a download href="./someDir/someFile.PNG" >View</a>
This way you will not need to indicate the complete url.
And if in the future the url changes, you won't have to modify the url.
In my case it works perfect, I hope it helps you too.
Just check the directory in which you are trying to fetch the file. Your looking file may be not present in that directory. Otherwise, you are using the correct piece of code.
<a download href="~/home/Uploads/someDir/someFile.PNG" >View</a>

Image is not showing in wordpress media

When I am uploading images in WordPress media. It shows error.
error showing: An error occurred in the upload. Please try again later.
And also any of the images is not showing.
Here I click to attched image to the page but there is no image
Not any of the images are showing here only wp loader is rotating.
This issue comes when I make a second copy of wordpress site on the same server. I have given Site URL and Home URL correctly and also given permission to the all the folder. Yet this issue not resolved. but other wordpress site is working fine on this server.
There are many reasons to do not upload images in your WordPress media library.
That might be the issue of permission of your directory or as you said you have given permission already then you should check you upload path.
There are also some other steps to check and solve your issue.
Please follow this link. It will guide you step by step process and hopefully work for you.

How to insert plugin URL (wordpress.org)

I'm trying to upload plugin to wordpress.org but found it kinda difficult.
See Screenshot
When I click "Send Post>>" ,it says "You must supply a Plugin URL that is a link to a .zip file of the working plugin" . I've already uploaded the zip file on https://uploadfiles.io/. And the url is absolutely correct.
Any ideas?
The link needs to be a direct link to the zip file. Most file upload services won't allow this. Chances are it will need to be on a file server.

grab file from url issue

i want to grab file from url using (file_put_contents) function but i can't and i got error (file not found) but i am sure 100% the path of the file is correct because when i clicked on the link for download the file in the same site it works but when i want to grab it it says not found.
see this path
http://bramegm.com/software/files/soft53/ElaSalaty.exe
when you try to grab it or also try to use (linux command like wget) you got that the file is not found but see the file page
http://www.bramegm.com/software/download/elasalaty/%D8%AA%D8%AD%D9%85%D9%8A%D9%84-%D8%A7%D9%84%D9%89-%D8%B5%D9%84%D8%A7%D8%AA%D9%8A
go to the bottom and you will see the same file path click on it and it will downloaded.
any help to grab this file without entering the site.
regards
You are trying to download the file from http://bramegm.com/software/files/soft53/ElaSalaty.exe but in the given URL i see the actual link is http://www.bramegm.com/software/files/soft54/ElaSalaty.exe. Please notice the difference in soft53 and soft54.

How to set the default location of the FCKEditor file browser?

I'm working the the image upload piece of the FCKEditor and I've got the uploading working properly but am stuck with the server file browser.
You can see in the dialog above has a Browse Server button which pops up the following dialog
The problem is that I have no idea which folder the file browser is pointing at.
I've set the UserFilePath and USerFilesAbsolutePath in the PHP connector config.php to control where my image uploads go.
How can I configure the file browser so that it starts off pointing at the same folder where my uploads are going?
Edit
The ImageBrowserURL property is NOT what I'm looking for. That property is used for having the Browser Server button point somewhere other than the default file browser.
My problem is figuring out how to point the default file browser to a specific directory.
Please read this post of mine on FCKeditor forums. Are you having the same problem I had?
Is it this?
ImageBrowserURL
(string) Sets the URL of the page called when the user clicks the "Browse Server" button in the "Image" dialog window.
In this way, you can create your custom Image Browser that is well integrated with your system.
See http://www.clinicaestet.ro/FCKeditor/_docs/contents/012.html
You need to set some config information for the FCKEditor. This is done either in javascript code in your webpage or you can do it in the FCKEditor config file which is located typically in /fckeditor/fckconfig.js file. If you did not install the fckeditor to the typical fckeditor directory, you will need to replace that part of the path with the correct path.
In the fckconfig.js file you need to change the "ImageBrowserURL" setting to whatever you want.
FCKConfig.ImageBrowserURL = '/myfilebrowserpath/browser.php' ;
This is where the dialog will look for your files. Here is a link to FCKEditor documentation on this. I hope that helps.

Categories