Fresh Install [v4.5.2]: Call to undefined method uploader::makeFilenameSafe()

TheKJB

New Member
Jul 13, 2018
4
0
1
35
Hi,

Just installed as per instructions, trying to upload and I'm getting this error message:
ERROR: There was a server problem when attempting the upload, please try again later.

The system log (core/logs/system) states the following:
2018-07-13 13:02:42 - Upload request to uploadHandler.php: r=www.[REDACTED].com&p=https&csaKey1=80a30d65a35de67c2141fc8d787881e6085355df1e4a143c0ba16dc8a4513952&csaKey2=df487c937a2d963b5b25158239826381d874dd80b2121db31af8c7c5634abc5a&_sessionid=llo43t1l9glebuq2vqf6opdj02&cTracker=7d52cd2d4967d56dc1f825401b7dbbfb&maxChunkSize=2092152&folderId=
2018-07-13 13:02:42 - *** ERROR *** Array
(
[Error Msg] => Uncaught Error: Call to undefined method uploader::makeFilenameSafe() in /home/[REDACTED]/public_html/core/includes/uploader.class.php:694
Stack trace:
#0 /home/[REDACTED]/public_html/core/includes/uploader.class.php(234): uploader->moveIntoStorage(Object(stdClass), '/home/[REDACTED]...')
#1 /home/[REDACTED]/public_html/core/includes/uploader.class.php(289): uploader->handleFileUpload('/home/mirrorfil...', 'AMTEmu v.0.9.2 ...', 1842439, 'application/x-z...', 0, 0, NULL, '7d52cd2d4967d56...')
#2 /home/[REDACTED]/public_html/core/page/ajax/file_upload_handler.ajax.php(97): uploader->post()
#3 {main}
thrown
[File] => /home/[REDACTED]/public_html/core/includes/uploader.class.php
[Line Number] => 694
[Error Type] => E_ERROR
)
My site is running PHP 7.0.27, here's my phpinfo:
REMOVED
 
Last edited:

TheKJB

New Member
Jul 13, 2018
4
0
1
35
FYI, I tried switching the virtual server to PHP v5.6.25 though that made no difference.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Copy of my ticket response below.. :)

Can you please try uploading the attached file into:

/core/includes/

We did a release yesterday which was missing a function. I've checked other changes and they look fine.
 

Attachments

TheKJB

New Member
Jul 13, 2018
4
0
1
35
That sorted it, thanks Adam.

Really impressed with the support, looking forward to getting my site established!

Cheers.