Support

Home Forums Event Espresso Premium Repeating filepath errors appearing before (related to?) ticket selector

Repeating filepath errors appearing before (related to?) ticket selector

Posted: June 6, 2017 at 6:18 pm

Viewing 2 reply threads


Diane Dignam

June 6, 2017 at 6:18 pm

Hi folks,

I’m having an issue with the EE4 plug-in that has is ongoing on this site: http://dppskillnet.ie/index.php/events/

Every current event is displaying a long string of error codes before the event ticket selector.
—————-
Example:
Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (260): C:\CustomerData\webspaces\webspace_xxxxxxxxx\webapps\SiteAppxxxxx\htdocs/wp-content/themes/x/C:/CustomerData/webspaces/webspace_xxxxxxxxx/webapps/SiteAppxxxxx/htdocs/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/templates/ticket_details.template.php on line 630
—————-
As you can see there is something strange happening in these address calls. They appear to revert to C:\ midway through.

I have confirmed that the issue is not with the current theme, or any other active plug-ins. All other plug-ins were deactivated for testing and a default WordPress theme was applied with no success.

An update of EE4 did not resolve the problem. EE4 is currently updated to Version 4.9.39.p. The license for the site is current.

This error is occurring across multiple browsers.

Please advise.

  • This topic was modified 7 years, 4 months ago by Tony. Reason: Change file path


Tony

  • Support Staff

June 7, 2017 at 3:43 am

Hi there,

Those warnings are not errors, they are warnings thrown by your server informing you the file path currently being checked is longer than the server allows (260 characters).

For the majority of templates EE uses, it also checks for custom versions of the template within various locations including your site’s theme.

What is happening is EE is passing the full path to our template function and the first step within that function is to check within the site’s theme (and child theme) for the template it has been passed. So EE passes something like:

C:/CustomerData/webspaces/webspace_xxxxxxxxx/webapps/SiteAppxxxxx/htdocs/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/templates/ticket_details.template.php

As the template to load, which is passed to locate_template

locate_template is then checking for that file in your theme which ends up being:

C:\CustomerData\webspaces\webspace_xxxxxxxxx\webapps\SiteAppxxxxx\htdocs/wp-content/themes/x/C:/CustomerData/webspaces/webspace_xxxxxxxxx/webapps/SiteAppxxxxx/htdocs/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/templates/ticket_details.template.php

Normally that wouldn’t cause too much of an issue, the file doesn’t exist so EE continues on through its various other checks and returns a working template from wherever it finds it… however on your server, the above throws a warning because the file path is too long.

Right now your server has display_errors set to true meaning all warnings, notices, errors etc will display on the front-end of the site. On production servers it is recommended to not display them, for that you can add something like this:

define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

Within your wp-config.php file. You can then enabled logging to log the errors if needed during debugging.

The above doesn’t ‘fix’ the cause of the warning but it should prevent the warnings from being thrown on the event page.


Diane Dignam

June 7, 2017 at 4:14 am

Tony,

Having consulted with my hosting operators, they could offer no better solution, so I have implemented your suggested fix and it has had the desired effect.

Thank you for your help.

Viewing 2 reply threads

The support post ‘Repeating filepath errors appearing before (related to?) ticket selector’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso