Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4342
Latest: eva
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 44312
Total Topics: 7676
Most Online Today: 513
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 443
Total: 443

Author Topic: Failed to open stream: File name too long  (Read 4219 times)

0 Members and 1 Guest are viewing this topic.

Failed to open stream: File name too long
« on: »
I am getting a new error now in SMF 2.1.4, Apache 2.4 , PHP 8.2.20 and Pretty-Urls 4.0.1. Each time an error cause by PrettyURL's long URL's, the website fails and I need to run PrettyURL's Maintenance and all is back to normal until the next time.
Error is in a different place since I replaced the JS.php file. What can I do now?

« Last Edit: June 20, 2024, 12:53:42 am by Randem »

Re: Failed to open stream: File name too long
« Reply #1 on: »
Temp uncheck use cache instead of database option in pretty urls.

Long term fix need to look into the length of the pretty url.... for subject surprised it hit a linux file length limit.
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/

Re: Failed to open stream: File name too long
« Reply #2 on: »
Thanks, I will try that.

Re: Failed to open stream: File name too long
« Reply #3 on: »
Turning off Pretty URLs cache and using database entries for cache worked, well sort of... I did not get the error again but a strange thing happened. I attempted to "
Modify" a post and I could not edit the post, the screen area went blank. I tried several times then I turned Pretty URLs cache back on and I could modify the post... So I went back and turn on the Pretty URLs cache and I could edit the post again.

I do have to run Pretty URLs "Maintenance" occasionally for the Pretty URLs stop working until I run Maintenance.

Re: Failed to open stream: File name too long
« Reply #4 on: »
Update 4.1
!Strip PHPSessionID from cache title when using the cache option instead of database
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/

Re: Failed to open stream: File name too long
« Reply #5 on: »
How would one do that?

Re: Failed to open stream: File name too long
« Reply #6 on: »
Uninstall old version and install new.
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/

Re: Failed to open stream: File name too long
« Reply #7 on: »
Tried to install version 4.1 and got these errors using SMF 2.1.4:


Re: Failed to open stream: File name too long
« Reply #8 on: »
Attach your News.php file.

Any mod installed that affects news or newsletters?
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/

Re: Failed to open stream: File name too long
« Reply #9 on: »
No, install was done on a clean system (Always test before going live). I searched the download install for the stated line and it was not found in the SMF 2.1.4 download install (News.php)

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
6265 Views
Last post February 28, 2010, 08:46:36 pm
by SMFHacks
5 Replies
8095 Views
Last post April 07, 2012, 08:22:58 am
by SMFHacks
4 Replies
7424 Views
Last post May 26, 2014, 12:01:30 am
by SMFHacks
1 Replies
3861 Views
Last post December 04, 2017, 07:20:10 pm
by SMFHacks
3 Replies
3536 Views
Last post August 09, 2020, 01:52:57 pm
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal