Events List Widget "List_Widget.php on line 128"

Home Forums Calendar Products Events Calendar PRO Events List Widget "List_Widget.php on line 128"

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #972364
    Andy
    Participant

    After upgrading to 3.10 I’m getting the following error on my Events List Widget:

    
    Warning: include(/home/%SERVER_UN%/public_html/wp-content/plugins/events-calendar-pro/src/views/pro/pro/widgets/list-widget.php): failed to open stream: No such file or directory in /home/SERVER_UN/public_html/wp-content/plugins/the-events-calendar/src/Tribe/List_Widget.php on line 128
    
    Warning: include(): Failed opening '/home/%SERVER_UN%/public_html/wp-content/plugins/events-calendar-pro/src/views/pro/pro/widgets/list-widget.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/SERVER_UN/public_html/wp-content/plugins/the-events-calendar/src/Tribe/List_Widget.php on line 128
    

    I saw a similar discussion (https://theeventscalendar.com/support/forums/topic/warning-with-ec-3-10-ecp-3-9/) but I’m on the latest version of WP and I just reinstalled it to confirm that my install was okay. I also deleted this widget and attempted to add it fresh, no success. The site is in development mode (not for public yet), but I’d be glad to private message the URL to someone from support.

    Thanks for your help.

    #972518
    Barry
    Member

    Hi Andy,

    I’m sorry to hear the update through up some hurdles. The filepath in your error message caught my eye:

    plugins/events-calendar-pro/src/views/pro/pro/widgets/list-widget.php

    The “double” pro directories is definitely unusual, and do not exist in our official download. I’m unsure why that might be happening and I cannot replicate this problem locally (nor have I seen other reports of this specific problem).

    As it’s a development site, were you able to complete all our normal troubleshooting steps? I can’t help but suspect a customization or another plugin/your theme may be throwing a spanner in the works.

    If you don’t believe this to be the case, would it be possible to get a URL for your dev site (via private reply) with the site left in a stripped down state (ie, only our own plugins and a default, unmodified theme in place) so I can take a look and see if any clues present themselves?

    Thanks!

    #972670
    Andy
    Participant

    Hi Barry,

    It looks like the updated /events-calendar-pro/lib/widget-advanced-list.php on line 72 it’s prepending the pro folder to the template path, but in the List_Widget::widget_output function, it runs Tribe__Events__Templates::getTemplateHierarchy( $template_name ) – this function will run through theme, plugin and pro plugin $_namespaces (around line 613 of the-events-calendar/src/Tibe/Templates.php) and eventually prepends “pro/” to the $template_name which starts as ‘pro/widgets/list-widget’

    Hopefully this helps you guys – I’m not super familiar with the code base, perhaps this has something to do with our theme setup? I’m actually only getting this on the dev site, my local implementation is fine.

    I’m also wondering if that’s simply something weird with the Template Hierarchy function when the override folder is present or not (default WP themes have no folder)

    We’re testing that and will get back to this thread.

    #972864
    Barry
    Member

    Hi Andy,

    The block of code you referenced would certainly form the path with the double /pro/ segment – however that block only executes if the template wasn’t located earlier on in the process.

    In an up-to-date and otherwise unmodified installation of our plugins, I’m not sure why that would happen – I cannot replicate it and we aren’t seeing reports of other users hitting up against the same problem – so it does seem the situation is peculiar to your site.

    Can you confirm if you were able to complete our standard troubleshooting steps in full and did that make any difference here/allow you to uncover any conflicts?

    #985351
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Events List Widget "List_Widget.php on line 128"’ is closed to new replies.