Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation.uploaded Error #4

Closed
antwonw opened this issue Aug 10, 2023 · 3 comments
Closed

validation.uploaded Error #4

antwonw opened this issue Aug 10, 2023 · 3 comments

Comments

@antwonw
Copy link

antwonw commented Aug 10, 2023

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
Copy link
Member

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
Copy link

craeckor commented Dec 25, 2023

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants