Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 294
Total: 294

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Oldiesmann

Pages: [1] 2
1
Support / Re: "Path cannot be empty" error with large image
« 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

2
Support / "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.

3
Site Discussion / Re: SMF forum
« on: June 26, 2022, 07:37:11 pm »
Also #smf on LibraIRC if you don't have/want Discord

4
Bugs / Undefined array index: smfgallery_admin
« on: February 18, 2022, 03:08:29 pm »
Just upgraded one of the sites I run to 2.1.1 and after reinstalling the gallery, I get errors related to $txt['smfgallery_admin'] not being defined (two instances in GalleryHooks.php and one in Gallery2.php) - it should be $txt['gallery_text_adminpanel'] instead.

The odd thing is I just upgraded another forum on the same server last week using the same package and don't have that problem. The one I upgraded last week still says "Gallery Configuration" in the admin center as well instead of "Gallery Administration Panel".

5
Support / Database error
« on: July 11, 2021, 05:17:28 pm »
Just upgraded one of my sites to 2.1 RC4 and keep getting this error in the log...

Code: [Select]
Database Error: You have an error in your SQL [syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '|| c.view =1)))

AND p.id_member = 53 AND p.approved = 1' at line 8

SELECT COUNT(*) AS total FROM (smf_gallery_pic as p)

LEFT JOIN smf_members AS m ON (m.id_member = p.id_member)
LEFT JOIN smf_membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))
LEFT JOIN smf_gallery_usersettings AS s ON (s.id_member = m.id_member)
LEFT JOIN smf_gallery_catperm AS c ON (c.ID_GROUP IN (-1) AND c.ID_CAT = p.ID_CAT)
LEFT JOIN smf_gallery_log_mark_view AS v ON (p.id_picture = v.id_picture AND v.id_member = 53 AND v.user_id_cat = p.USER_ID_CAT)
WHERE (((s.private =0 || s.private IS NULL ) AND (s.password = '' || s.password IS NULL ) AND p.USER_ID_CAT !=0 AND p.approved = 1) || (p.USER_ID_CAT =0 AND p.approved = 1 AND (c.view IS NULL || c.view =1)))

AND p.id_member = 53 AND p.approved = 1

6
Pretty Urls / Re: Pretty Urls extras
« on: June 05, 2019, 08:27:05 pm »
Any updates on this? I also notice it isn't picking up on action=gallery either. It is rewriting the URLs for images but not for the gallery or any albums.

7
Pretty Urls / Re: Pretty Urls extras
« on: April 18, 2019, 10:50:05 pm »
2.1 RC2

8
Pretty Urls / Re: Pretty Urls extras
« on: April 16, 2019, 09:15:29 pm »
I have rerun that and it isn't picking up on the "tpmod" action at all.

9
Pretty Urls / Re: Pretty Urls extras
« on: April 15, 2019, 09:11:01 pm »
Question about the extras... It rewrites TinyPortal articles based on the page ID. However, TP lets you specify a query for the article (so you get index.php?page=query instead of index.php?page=1). Would it be possible to change the filter to rewrite it to /page/query/ instead of /page/id/?

Also how do I get Pretty URLs to rewrite TinyPortal actions? TP uses integration hooks so it won't show in the big actions array in index.php.

10
Modifications Talk / Re: Pretty URLs and 2.1
« on: February 18, 2019, 09:39:38 pm »
That fixed it. Thanks!

11
Modifications Talk / Re: Pretty URLs and 2.1
« on: February 18, 2019, 08:24:33 pm »
What file do I add that in?

12
Modifications Talk / Re: Pretty URLs and 2.1
« on: February 18, 2019, 07:06:50 pm »
I should note that this still happens even when using the most recent version of the mod.

13
Modifications Talk / Pretty URLs and 2.1
« on: February 18, 2019, 07:01:54 pm »
On my forum, when I enable URL rewriting, the form in the login popup never loads, even if I disable rewriting of the login action.

I get this error in the console in Chrome:

Code: [Select]
script.js:1016 Uncaught TypeError: Cannot use 'in' operator to search for 'addEventListener' in undefined
    at createEventListener (script.js:1016)
    at (index):402
createEventListener @ script.js:1016
(anonymous) @ (index):402

Apparently something is calling createEventListener without specifying an object. I haven't had time to dig into this further though.

14
Site Discussion / Re: Tinyportal and Mkportal.Which is better?
« on: February 06, 2019, 07:23:16 pm »
SimplePortal is really good as well.

15
Support / "Undefined Index" errors
« on: January 30, 2019, 12:20:03 pm »
Seeing these two errors a lot on SMF 2.1...

Code: [Select]
Undefined index: gallery_pic_id
https://.../index.php?action=gallery;sa=whofavorited;pic=359
/.../Themes/default/Gallery2.1.template.php (Line 7564)

Code: [Select]
Undefined index: image_href
https://.../index.php?action=gallery;sa=myimages;u=58;start=20
/.../Themes/default/Gallery2.1.template.php (Line 6618)

Pages: [1] 2

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal