Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43301
Total Topics: 7525
Most Online Today: 114
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 95
Total: 95

Author Topic: "Path cannot be empty" error with large image  (Read 1845 times)

0 Members and 1 Guest are viewing this topic.

Offline Oldiesmann

  • SMF Gallery Pro Customer
  • Member
  • *****
  • Posts: 20
    • View Profile
    • Archie Comics Fan Forum
"Path cannot be empty" error with large image
« on: July 26, 2023, 12:54:44 am »
Trying to upload an image to the gallery and it gives me a blank page shortly after I click the button to upload it. This is in the logs for the site (not SMF's error log but the site log in Plesk):

Code: [Select]
Got error 'PHP message: PHP Fatal error: Uncaught ValueError: Path cannot be empty in /.../Sources/Gallery2.php:2468
Stack trace:
#0 /.../Sources/Gallery2.php(2468): getimagesize()
#1 /.../Sources/Gallery2.php(297): AddPicture2()
#2 /.../index.php(196): GalleryMain()
#3 {main}
 thrown in /.../Sources/Gallery2.php on line 2468', referer: https://.../gallery/?sa=add;cat=1;u=1

The image in question is about 3.7MB in size but is smaller than what it says the max image upload size is (although far bigger than PHP will allow). If I try the bulk uploader instead it never finishes (I assume it runs into the same issue at some point?). I tried with a smaller image (40kb) and that one worked fine.

Server is Apache with nginx reverse proxy, PHP 8.0.29 running on Ubuntu 22.04.2 LTS. Forum is SMF 2.1.4, several other mods installed.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: "Path cannot be empty" error with large image
« Reply #1 on: July 26, 2023, 07:50:22 am »
What are your php.ini settings for post_max_size upload_max_filesize
Might have to check webserver limits too for file uploads.

I am assuming you get a similar error when you upload an attachment to a post.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Oldiesmann

  • SMF Gallery Pro Customer
  • Member
  • *****
  • Posts: 20
    • View Profile
    • Archie Comics Fan Forum
Re: "Path cannot be empty" error with large image
« Reply #2 on: July 26, 2023, 09:03:08 am »
post_max_size is 8M, upload_max_filesize is 2M. I haven't tried uploading it as an attachment because SMF won't let you set attachment size limits higher than upload_max_filesize

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: "Path cannot be empty" error with large image
« Reply #3 on: July 26, 2023, 09:24:29 am »
upload_max_filesize is the issue make it the same as post_max_size
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4551 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
9016 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8333 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
1 Replies
6719 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
8490 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews

+- Recent Topics

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

Powered by EzPortal