Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4261
Latest: live627
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43353
Total Topics: 7534
Most Online Today: 146
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 116
Total: 116

Author Topic: Failed to open stream: File name too long  (Read 432 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: 16481
    • 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: 16481
    • 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: 16481
    • 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: 16481
    • 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
4791 Views
Last post February 28, 2010, 08:46:36 pm
by SMFHacks
5 Replies
5986 Views
Last post April 07, 2012, 08:22:58 am
by SMFHacks
4 Replies
5448 Views
Last post May 26, 2014, 12:01:30 am
by SMFHacks
1 Replies
2364 Views
Last post December 04, 2017, 07:20:10 pm
by SMFHacks
3 Replies
2154 Views
Last post August 09, 2020, 01:52:57 pm
by SMFHacks

+- Recent Topics

Recent Items On Main Index by SMFHacks
July 22, 2024, 07:53:34 pm

SMF Gallery Pro 10.0 - Released! by SMFHacks
July 21, 2024, 11:18:35 am

Opportunity to use more hooks by SMFHacks
July 21, 2024, 11:08:45 am

Installation error: code not found by SMFHacks
July 20, 2024, 10:30:33 am

Installation warning: file not found by SMFHacks
July 20, 2024, 10:30:19 am

Setting a photo as invisible by SMFHacks
July 16, 2024, 11:05:06 pm

2.1.4 - Using drag and drop. by SMFHacks
July 16, 2024, 10:35:13 pm

Rate own images by SMFHacks
July 16, 2024, 10:25:55 pm

Site upgrade to 2.1 by SMFHacks
July 12, 2024, 07:47:03 am

Issues with Pretty URLs 4.1 by Randem
June 27, 2024, 07:32:22 pm

Powered by EzPortal