Warning: file_exists() Error

I am helping someone with their site. He has this error

file_exists(): File name is longer than the maximum allowed path length on this platform (4096)

On the index page and the profile pages. We thought it was the skin, I uploaded a different skin to test that theory. Same error.

phpVMS 5.5.2

php 5.4. We have also tried it with php 5.5 and 5.6

There is a route, airplane, and two airports in the database. There is some data.

Any hekp would be appreciated.

Have any hubs been added?

Just one

Hmmm, can you see if this works

Its already defaulted like that

Have there been any flights in the database -> your skin might be looking for the past 5 flights. Have you tried it with Crystal?

No flights yet. Error goes away with crystal.

Is there anything that is the same on both pages that could be outputting that error?

no, I put other skins on his site, all came with the same error. I will have him file some flights, see what happens.

Does any of the airline names have a period (.) in it? If the end of the error message looks something like;

<select name="code" id="code"> <opt in /home/u328252270/public_html/suava/demo/core/classes/TemplateSet.class.php on line 96

I would guess the airline name has a period in it or possibly the code of the airline is TPL or PHP

No period, the Airline code is VAP

http://www.klm-airways.com

Try removing the registration form from the front page and see if the error goes away.

EDIT: I meant login form

No change

Can you put up a phpinfo file and let me know the link?

I think it is something in the config on the server, there is another site doing the same thing hosted on a Hostinger server as well. -> http://tamv.net/suav…hp/registration

I sent you the link through PM

Is your server (for flyaka) running on fastcgi for php?

It would be in the first section of phpinfo and is labeled -> Server API

I think you said you are running 5.5.2 of my version, if that is correct try this;

/core/classes/TemplateSet.class.php

line 117 should be

if (is_string($value) && $value != '' && substr_count($value, $this->tpl_ext) > 0) {

change to

if (is_string($value) && $value != '' && substr_count($value, $this->tpl_ext."\n\r") > 0) {
1 Like

That fixed it. Thank you!

Yes on my AKA server -

Server API CGI/FastCGI

1 Like

Words cannot express my feelings, nor my thanks for all your help."

I know it isn’t much but I really want to say

Thank You for everything

My friend

1 Like

This fix puts another error in the air. In admin know matter what link I click there is some sort error where a menu should be. It will display sidebar_dashboard.php for examplae, different for each link.

post-49-0-41571100-1446411873.png