Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter whiterat

    (@whiterat)

    Thanks for reaching out. The idea of disabling the cache is good, but that’s not the culprit as I’ve had it disabled for a while now (i.e before I started this thread). I have not had the time to do further testing yet, hence the delay in replying. I’ll try and report new details next week, after I’ve studied the problem a bit more.

    Thread Starter whiterat

    (@whiterat)

    Hi!

    The contents of my contact.php are about as simple as what you used for testing. Just some html + very basic js. But I’m not even sure that’s relevant, given the “deadly” example I mentioned before. What made me curious was that when I added the aforementioned “deadly” die() to the beginning of contact.php, I could clearly see that the current month view without any events did not “die”, while other views (other months without or with events) did (which was, of course, what I expected).

    Truth to be told, I’m not sure what to make of all this at the moment. I watched the video and saw no problems. I’ll try and dig a bit deeper next week at the latest. I have solved my initial problem by choosing a different approach, so this here needn’t be considered a support request per se, but it’d be good to figure out what’s going on.

    Thread Starter whiterat

    (@whiterat)

    Hi!

    Thank you for looking into this. I did some testing myself and would like to correct what I said before. It appears that I should have been more thorough in my reporting, since the current description is indeed a bit misleading & vague.

    The function passed to add_action runs regardless of whether one is looking at the current month with or without events. However, my actual code doesn’t match the example 1:1, and this is where the problem seems to be.

    Here’s what I’m using

    add_action(
    'tribe_template_before_include:events/v2/components/events-bar/views',
    function ( $file, $name, $template ) {
    $template->template( 'components/contact' );
    },
    10,
    3
    );

    Like I said, this seems to run just fine. However, I put some “deadly” php into the contact.php template for testing, and that’s when things started to make more sense. Looking at the current month without any events does not cause the code to be executed for some reason.

    Looking at your screenshot I noticed that you have other views (list, day) enabled. I only have month, although I doubt it makes a difference.

    Let me know if I can be of more help or if you’ve managed to catch whatever obvious mistake I may be making here 🙂

    similar behavior except that I don’t even need to deactivate / activate to face problems. The settings for a specific gallery are not saved (ajax, number of columns etc). More specifically, gallery->gallery settings values are saved but specific gallery settings cannot be changed. For example, number of columns remains at 5 (regardless of the respective gallery->gallery settings value).

    The 5 returns even before I have updated the wp page (modify & save & close settings & open settings) so the new value does not probably even get passed on.

    V 2.1.77

    Am I missing something simple here?

    K

    • This reply was modified 9 years, 1 month ago by whiterat.
    Thread Starter whiterat

    (@whiterat)

    Thank you. It was as simple as that.

    K

    Thread Starter whiterat

    (@whiterat)

    Oh, I forgot the most important part: for testing purposes i tried an exact copy of ngglegacy/view/imagebrowser.php.

    And if i don’t use a custom file but just tell ngg to use one of the preset templates (which, I assume also come from the aforementioned dir / files, it fails as well, same symptoms)

    Thread Starter whiterat

    (@whiterat)

    The thing works like a charm… 🙂 I have no idea what was wrong before.

Viewing 7 replies - 1 through 7 (of 7 total)