Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4282
Latest: Eric87
New This Month: 7
New This Week: 1
New Today: 1
Stats
Total Posts: 43660
Total Topics: 7574
Most Online Today: 89
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

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

0 Members and 1 Guest are viewing this topic.

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Failed to open stream: File name too long
« on: June 20, 2024, 12:50:21 am »
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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16617
    • View Profile
Re: Failed to open stream: File name too long
« Reply #1 on: June 20, 2024, 12:55:47 am »
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/

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Failed to open stream: File name too long
« Reply #2 on: June 20, 2024, 12:59:23 am »
Thanks, I will try that.

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Failed to open stream: File name too long
« Reply #3 on: June 21, 2024, 10:40:41 am »
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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16617
    • View Profile
Re: Failed to open stream: File name too long
« Reply #4 on: June 25, 2024, 10:34:47 pm »
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/

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Failed to open stream: File name too long
« Reply #5 on: June 25, 2024, 10:47:05 pm »
How would one do that?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16617
    • View Profile
Re: Failed to open stream: File name too long
« Reply #6 on: June 25, 2024, 10:51:34 pm »
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/

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Failed to open stream: File name too long
« Reply #7 on: June 26, 2024, 01:22:57 am »
Tried to install version 4.1 and got these errors using SMF 2.1.4:


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16617
    • View Profile
Re: Failed to open stream: File name too long
« Reply #8 on: June 26, 2024, 06:52:03 am »
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/

Offline Randem

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Failed to open stream: File name too long
« Reply #9 on: June 26, 2024, 02:13:37 pm »
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
4883 Views
Last post February 28, 2010, 08:46:36 pm
by SMFHacks
5 Replies
6251 Views
Last post April 07, 2012, 08:22:58 am
by SMFHacks
4 Replies
5660 Views
Last post May 26, 2014, 12:01:30 am
by SMFHacks
1 Replies
2483 Views
Last post December 04, 2017, 07:20:10 pm
by SMFHacks
3 Replies
2230 Views
Last post August 09, 2020, 01:52:57 pm
by SMFHacks

+- Recent Topics

Do you offer paid assistance with the SMFBlog mod? by Grammy
February 11, 2025, 02:58:04 pm

SMFBlog Mod by Grammy
February 10, 2025, 07:33:32 pm

[Mod]Bluesky Auto Embed by SMFHacks
January 30, 2025, 01:47:36 pm

Delete a Picture from Trash - Error by SMFHacks
January 29, 2025, 09:06:38 pm

RESOLVED: Store Not Logging Transactions or Sending Emails by SMFHacks
January 23, 2025, 06:24:27 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Powered by EzPortal