ellite / Wallos

Wallos: Open-Source Personal Subscription Tracker
GNU General Public License v3.0
2.17k stars 99 forks source link

Unable to Upload Custom Images and Search Images via Web #343

Open MagnusHL opened 1 month ago

MagnusHL commented 1 month ago

I am experiencing multiple issues with the wallos repository:

When I upload custom images, the upload is successful, and the images appear to be saved. However, upon reloading the page or saving again, the old graphics are still displayed instead of the newly uploaded ones.

When I use the web search to find an image, I receive the following error message:

SyntaxError: Unexpected end of JSON input

Please investigate and resolve these issues. Thank you.

Best regards, Magnus Hinzke

ellite commented 1 month ago

Hi. Thank you for the report.

I will have a look after work.

Meanwhile can you tell me a bit about your setup? Are you using docker or installed baremetal? Also, could you please open the developer tools and copy/paste the response from the endpoint?

Thank you.

MagnusHL commented 1 month ago

Hi,

Thank you for the prompt response.

I am not using a Docker setup. I cloned the current Git repository and am running it under PHP 8.2 with Cloud Panel. Unfortunately, I am not sure how to provide the output from the developer tools. If you could specify what information you need from there, I can try to provide it.

In the console, I do see some information. Here is what I found:

CleanShot 2024-05-27 at 16 25 15@2x

Please let me know if you need more specific details.

Best regards, Magnus Hinzke

ellite commented 1 month ago

On the same panel where you see the console, there should be a "network" tab where you see all the requests made. With it open, add a subscription and you should see a call to subscription/add.php If you click it, it should give you some info about the request. The "response" tab should then contain some useful information about what the error is.

Thanks.

MagnusHL commented 1 month ago

Response is empty, but a "500 internal server error" is shown On Upload I get "{"status":"Success","message":"Abonnement erfolgreich aktualisiert"}"

CleanShot 2024-05-27 at 16 42 32 2@2x

ellite commented 1 month ago

Just a thought. Do you have all the required modules enabled?

PHP 8.2 with the following modules enabled: curl gd imagick intl openssl sqlite3 zip

MagnusHL commented 1 month ago

I think so.

php-fpm8.2 -m
[PHP Modules]
bcmath
calendar
cgi-fcgi
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
imap
intl
json
ldap
libxml
mbstring
memcached
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
ellite commented 1 month ago

Other think I can think of is permissions to write to the folder. From your screenshot would be nice to see the response tab instead of the headers. Thanks and sorry for the delay.