shish / shimmie2

An easy-to-install community image gallery (aka booru)
http://code.shishnet.org/shimmie2/
GNU General Public License v2.0
404 stars 113 forks source link

Upload to Shimmie is failing (via Booru or command line) #866

Closed sukhysall closed 1 year ago

sukhysall commented 2 years ago

So I have a Synology DS1511+ running:

  1. MariaDB 5 (locally on the DSM OS)
  2. Shimmie2 (via a Docker)
  3. WAMP (to give me php execute ability) installed on Windows 10 (PHP cli used = 5.6.40) URL: https://bionus.github.io/imgbrd-grabber/docs/commands/shimmie.html

I'm running MariaDB locally on the NAS because I had a couple problems with running the docker instance of it. Once this issue is resolved, I can revisit running the DB on a docker too but for now I can confirm that Shimmie2 is successfully connected to it's MariaDB database so far so good.


ISSUE:

Having configured the "uploadtoshimmie.php" file (attached) into the root of the Grabber installation and entered the string into the "commands > image" section as per the guide in the above URL, I attempted to download an image expecting it to upload into my own instance of Shimmie. It failed. However, I have provided the Grabber output and also the output when running the command manually from command prompt:

GRABBER LOG OUTPUT:

[17:45:27.329][Info] Execution of ""C:\Users\sukhy>"C:\wamp64\bin\php\php5.6.40\php.exe" "C:\Program Files\Grabber\UploadToShimmie.php" -h="69284baf1cb50ebda18fe98746167325" -f="C:\Users\sukhy\Desktop\Grabber\test\69284baf1cb50ebda18fe98746167325.jpg" -t="general:testtag" -s="safebooru.org" -r="safe""

[17:45:27.331][Error] Command execution timeout


COMMAND LINE OUTPUT:

"C:\Users\sukhy>"C:\wamp64\bin\php\php5.6.40\php.exe" "C:\Program Files\Grabber\UploadToShimmie.php" -h="69284baf1cb50ebda18fe98746167325" -f="C:\Users\sukhy\Desktop\Grabber\test\69284baf1cb50ebda18fe98746167325.jpg" -t="general:testtag" -s="safebooru.org" -r="safe"

Something went wrong! Aborting.string(2214)

"<!doctype html>

404

Shimmie

Explanation

No handler could be found for the page 'upload'
Media © their respective owners, Shimmie © Shish & The Team 2007-2020, based on the Danbooru concept.
Took 0.03 seconds (db:0.01) and 2.00MB of RAM; Used 239 files and 6 queries; Sent 10 events; 0 cache hits and 3 misses; Shimmie version 2.9.1

UploadToShimmie.txt "

sukhysall commented 2 years ago

Sorry for the messy way the command line output has presented itself.

johanaxel007 commented 2 years ago

Also had this issue, changing 'data0' to 'data0[]' on line 162 of UploadToShimmie.php did make the command not crash and stopped Shimmie from spitting out PHP errors related to the upload process. The image still doesn't get uploaded.

I also tried to do an upload using Postman which did work (image got an ID on Shimmie) but still didn't appear in the post lists, even as an Admin. Going straight to the ID did make the uploaded image appear.

Files below are the values I used in Postman Postman (Post fields) Postman (Cookies)

johanaxel007 commented 2 years ago

php_error.log & apache access.log files when trying to upload using the original UploadToShimmie.php file with 'data0' on line 162 php_error.log --> Uncaught TypeError: count() access.log

and php_error.log & apache access.log files when trying to upload using the modified UploadToShimmie.php file with 'data0[]' on line 162 php_error.log --> No errors access.log

I am running Shimmie on an windows 10 desktop using WAMP

shimmie: "2.9.1+" schema: 21 php: "8.0.14" db: "mysql 10.6.5-MariaDB" os: "Windows NT DEVILS-SERVER 10.0 build 19044 (Windows 10) AMD64" server: "Apache/2.4.52 (Win64) PHP/8.0.14"

sukhysall commented 2 years ago

@shish - hi. any chance to take a look?

Daveo7 commented 1 year ago

This is also affecting our site.

Upgraded from shimmie2 2.8.4 to 2.9.2 and can't upload nothing.

Did a fresh install of shimmie2 2.9.2 on a nother site and that can't upload anything either.

No errors displayed to user and no errors in server logs.

Upgraded site is running on CentOS 7.9.2009 (64bit), Apache2, PHP 8.1, MariaDB 10.5.18 (even switched back to PHP 7.4 and still can't upload).

Test site is running on Debian 11.6 (64bit), Apache2, PHP 8.1, MariaDB 10.5.18 (even switched back to PHP 7.4 and still can't upload).

shish commented 1 year ago

No idea why I didn't get any notifications for this :S

If uploading via Shimmie's built-in upload form works, but upload via third-party tools doesn't, then I'd file a bug with the third-party tools...

@Daveo7 are you talking about uploading via third-party tools (which seems to be what the rest of the commenters are talking about) or using the built-in form (which should probably be a separate issue)?

Daveo7 commented 1 year ago

@shish built-in and multi-upload... neither work

Daveo7 commented 1 year ago

Sorry for not making it a separate issue, as I thought it was the same issue.

Daveo7 commented 1 year ago

Separated my issue into a separate issue. Issue number #894.

sukhysall commented 1 year ago

No progress. Closing.