How is this possible?

Gargen

Golden Member
May 13, 2008
1,435
0
71
I'm trying to help my GF fix her WordPress blog. It's giving her an error every time she tries to upload an image, but my question comes from something else I found while digging in to the problem.

After the WordPress forums and Google couldn't give me an answer that worked, I decided to try to find the php file that contained the text for the error message she's receiving (error text: "An error occurred in the upload. Please try again later."), so I could try to work backwards from there. I set windows to search file names and file content in all folders, then searched through a complete copy the files on her website for the error message. Nothing came up. I figured maybe the error message was a compilation of multiple phrases strung together, so I tried searching again for just a single word from the error message (the word "Please") and had a few hits, but none of them checked out as possible sources (all but one had "Please" in a comment somewhere).

Ok... maybe it's in the database somewhere. I did a search on the entire database for the word please, and none of the hits linked to something that could be part of the error message.

How can the website display an error text that doesn't exist in the files or database anywhere? Is there someplace else I haven't looked?
 

beginner99

Diamond Member
Jun 2, 2009
5,223
1,598
136
Theoretically it could fetch the error message remotely but I bet my house that this is not the case...

So yeah, you probably have not looked at the right place yet and maybe the actual message is in a phar archive and hence not searchable by simple text search.

Lol. I'm bored so i just grabbed a copy:

wordpress\wp-includes\script-loader.php (1 hit)
Line 212: 'default_error' => __('An error occurred in the upload. Please try again later.'),

(found with notepad++ "search in files")
 

baseter

Junior Member
Jan 11, 2013
7
0
0
That is a compilation error. It is not an error inside wordpress.

Your server should give more info about the error, eg. line and file. You should change some settings on your web server or install another one so you can see the file that generate the error.
 

Gargen

Golden Member
May 13, 2008
1,435
0
71
Theoretically it could fetch the error message remotely but I bet my house that this is not the case...

So yeah, you probably have not looked at the right place yet and maybe the actual message is in a phar archive and hence not searchable by simple text search.

Lol. I'm bored so i just grabbed a copy:

wordpress\wp-includes\script-loader.php (1 hit)
Line 212: 'default_error' => __('An error occurred in the upload. Please try again later.'),

(found with notepad++ "search in files")

Thanks! So the answer is notepad++ search > Windows 7 search!*













*Or I could blame me for not realizing that all the results were .js/.txt/.html/etc and then going in to the index options to make Windows search inside php files... but that would require self awareness and humility and I'm clearly too awesome for either of those.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Thanks! So the answer is notepad++ search > Windows 7 search!*

I might be mistaken, but I think Windows search will only look inside files in directories that have been indexed for searching. Perhaps that had something to do with it.
 

VenomXTF

Senior member
May 3, 2004
341
15
81
It's very unlike that this is an issue with the code, and much more likely it's what bobross419 said. Make sure you have write permissions enabled on the content upload folder.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |