Simple Machines Community Forum

SMF Development => Bug Reports => Topic started by: Sir Osis of Liver on June 20, 2024, 04:18:18 PM

Title: 3.0 attachments
Post by: Sir Osis of Liver on June 20, 2024, 04:18:18 PM
Getting this when attaching images.  Today's github code.

attach_ss1.jpg

Creates a link in post, no thumb, link is 404, file is not in /attachments.

attach_ss2.jpg





Title: Re: 3.0 attachments
Post by: Tyrsson on June 21, 2024, 12:04:41 AM
Would be a lot more helpful if you create an issue on github :)
Title: Re: 3.0 attachments
Post by: Kindred on June 21, 2024, 07:41:30 AM
Our site here is not the proper place for alpha bug reports, as we already noted when you asked about the alpha in the first place.
Title: Re: 3.0 attachments
Post by: Sir Osis of Liver on June 21, 2024, 12:52:55 PM
<sigh>  Will see if I can figure out github.  (It's the old dawg thing :( .)
Title: Re: 3.0 attachments
Post by: shawnb61 on June 21, 2024, 01:11:10 PM
Quote from: Sir Osis of Liver on June 21, 2024, 12:52:55 PM<sigh>  Will see if I can figure out github.  (It's the old dawg thing :( .)

This quick overview for entering bugs up on GitHub may help:
https://www.simplemachines.org/community/index.php?topic=570115.0

If you want to get really dangerous, this is the developer version:
https://www.simplemachines.org/community/index.php?topic=576283.0

These are a little dated, but all the ideas still hold. 
Title: Re: 3.0 attachments
Post by: Sir Osis of Liver on June 21, 2024, 01:18:11 PM
Will have a look, thanks.  My main concern is posting irrelevant/stoopid info on github and wasting devs' time.  Been doing that here for years, but it's a public forum.
Title: Re: 3.0 attachments
Post by: zedd151 on June 21, 2024, 01:40:55 PM
Quote from: Sir Osis of Liver on June 21, 2024, 01:18:11 PMMy main concern is posting irrelevant/stoopid info on github and wasting devs' time.
Sounds logical to me, Sir Osis...

What is wrong with vetting 'bugs' here first, if only to determine if it is really a bug, instead of a feature that is not yet available?
Title: Re: 3.0 attachments
Post by: Kindred on June 21, 2024, 03:06:35 PM
because this is not the place to discuss alpha stuff...... :P

once it goes to Beta - then we will open a board specifically to address 3.0 related questions, concerns, and reports
Title: Re: 3.0 attachments
Post by: Oldiesmann on June 21, 2024, 10:24:52 PM
The important part here is the "Server responded with 500 code" part. Your server error log will have useful details about that, which will help us fix the issue.
Title: Re: 3.0 attachments
Post by: Sir Osis of Liver on June 21, 2024, 11:02:08 PM
Today's github download.  Running in php 8.3.8.  Files are uploaded correctly.  No server errors.  The 500 errors in screenshot are from forum.  There are errors in forum log, they occur in pairs -

Today at 10:31 PM
88762acf633f046b6d28d3881ba34351
https://www.thekrashsite.com/smf30/index.php?action=post2;start=0;board=1
/home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Attachment.php (Line 1,411)

Type of error: General
Error message Select
2: rename(/home/thekrash/domains/thekrashsite.com/public_html/smf30/attachments/post_tmp_1_c96d88ed19d767749972feef75350b72,/home/thekrash/domains/thekrashsite.com/public_html/smf30/attachments/9_4f6cb83b2794f886a54ad2c22c72946bfc9728eb.dat): No such file or directory

Backtrace information

Type of error
General
Error message
2: rename(/home/thekrash/domains/thekrashsite.com/public_html/smf30/attachments/post_tmp_1_c96d88ed19d767749972feef75350b72,/home/thekrash/domains/thekrashsite.com/public_html/smf30/attachments/9_4f6cb83b2794f886a54ad2c22c72946bfc9728eb.dat): No such file or directory
File
/home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Attachment.php
Line
1411
URL of page causing the error
https://www.thekrashsite.com/smf30/index.php?action=post2;start=0;board=1
Backtrace information

    #0: SMF\ErrorHandler->__construct()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/ErrorHandler.php on line 141
    #1: SMF\ErrorHandler::call()
    Called from [internal function]
    #2: rename()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Attachment.php on line 1,411
    #3: SMF\Attachment::create()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Actions/Post2.php on line 392
    #4: SMF\Actions\Post2->submit()
    Called from [internal function]
    #5: call_user_func()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Actions/Post2.php on line 124
    #6: SMF\Actions\Post2->execute()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/ActionTrait.php on line 55
    #7: SMF\Actions\Post::call()
    Called from [internal function]
    #8: call_user_func()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Forum.php on line 263
    #9: SMF\Forum->execute()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/index.php on line 146



Today at 10:31 PM
88762acf633f046b6d28d3881ba34351
https://www.thekrashsite.com/smf30/index.php?action=uploadAttach;sa=add;f74da6cbe4=88762acf633f046b6d28d3881ba34351;board=1
/home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Graphics/Image.php (Line 316)

Type of error: General
Error message Select
2: exif_thumbnail(7_19f73c25a8015204e292d9dbb5f2324ea94387b7.dat): File not supported

Backtrace information

Type of error
General
Error message
2: exif_thumbnail(7_19f73c25a8015204e292d9dbb5f2324ea94387b7.dat): File not supported
File
/home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Graphics/Image.php
Line
316
URL of page causing the error
https://www.thekrashsite.com/smf30/index.php?action=uploadAttach;sa=add;f74da6cbe4=88762acf633f046b6d28d3881ba34351;board=1
Backtrace information

    #0: SMF\ErrorHandler->__construct()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/ErrorHandler.php on line 141
    #1: SMF\ErrorHandler::call()
    Called from [internal function]
    #2: exif_thumbnail()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Graphics/Image.php on line 316
    #3: SMF\Graphics\Image->createThumbnail()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Attachment.php on line 1,455
    #4: SMF\Attachment::create()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Actions/AttachmentUpload.php on line 425
    #5: SMF\Actions\AttachmentUpload->createAttach()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Actions/AttachmentUpload.php on line 210
    #6: SMF\Actions\AttachmentUpload->add()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/Actions/AttachmentUpload.php on line 142
    #7: SMF\Actions\AttachmentUpload->execute()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/smf30/Sources/ActionTrait.php on line 55




Title: Re: 3.0 attachments
Post by: Sir Osis of Liver on June 21, 2024, 11:04:09 PM
Also a bug in ACP, can't get into Server Settings > Session verification failed.

Seems I already have a github account, too tired to deal with it tonight.
Title: Re: 3.0 attachments
Post by: shawnb61 on June 22, 2024, 12:01:34 AM
The upgrades renames the file...

For them both to be there suggests a file restore took place...
Title: Re: 3.0 attachments
Post by: Sir Osis of Liver on June 22, 2024, 04:22:48 PM
Wrong topic, shawn, but yes, that's a possibility.  People do strange things when stuff goes sideways.