LinkStackOrg / winter-wonderland

A LinkStack Theme. Winter themed landscape with a falling snow animation in the background.
https://linkstack.org/themes/
13 stars 3 forks source link

validation.uploaded Error #4

Closed antwonw closed 6 months ago

antwonw commented 1 year ago

I get a validation.uploaded error when attempting to upload this theme, v1.6.

Screen Shot 2023-08-10 at 2 10 10 PM
lastsamurai26 commented 1 year ago

Unfortunately, I cannot reproduce this problem. Can you please tell me? what version of Linkstack you are using. I just uploaded version 1.6 Winter Wonderland in my test environment and I can use it without any problems.

craeckor commented 9 months ago

It's a server-side issue but has nothing to do with LinkStack directly. It's a php default limitation. The problem is upload_max_filesize which is set to 2MB and post_max_size which is set to 8MB (this isn't really a problem because Winter-Wonderland is only ~3MB) as default (at least for me (i use Openlitespeed)). You can test it with a high-resolution picture like this one. You will get the same Error. For Apache add the following two lines to .htaccess which should be in your WEBROOT:

php_value upload_max_filesize 20M
php_value post_max_size 21M

Save the file and restart Apache.

For Openlitespeed go to Virtual Hosts --> View LinkStack --> General --> php.ini Override --> Edit --> Paste the same two lines as mentioned above and save it --> Graceful Restart

For NGINX open the php.ini File with sudo nano /etc/php8*/fpm/php.ini and paste the same two lines as mentioned above and save it + Open your NGINX Config and add client_max_body_size 21m; to your server { ... } block. This will gonna look something like the following:

server {

    ...

   client_max_body_size 21m;

   ...

}
talheim-it commented 6 months ago

I think that issue can be closed since it is a server side configuration issue and I was able to upload all latest themes without problem to the self-hosted instance.