• Resolved naturalhistory

    (@naturalhistory)


    Hello,

    Thank you for a lovely plugin – I was delighted to find it and recommend it to my client, but…

    The plugin works beautifully when set for the whole site, but not on the shop page – https://www.slakespirits.com/shop/ – which is where I need it.

    I am also getting these errors on the Styling tab of the plugin:

    Warning: include(/home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/extras/css-ref.php): failed to open stream: No such file or directory in /home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/age-gate-admin-display.php on line 54

    Warning: include(): Failed opening ‘/home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/extras/css-ref.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/age-gate-admin-display.php on line 54

    And these in the Change Log;

    Warning: include(/home/greensip/public_html/wp-content/plugins/age-gate/admin/partials/extras/change-log.php): failed to open stream: No such file or directory in /home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/age-gate-admin-display.php on line 91

    Warning: include(): Failed opening ‘/home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/extras/change-log.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/XXXXXX/public_html/wp-content/plugins/age-gate/admin/partials/age-gate-admin-display.php on line 91

    Can you help me resolve this so that I can use the plugin?

    Many thanks,

    Sarah

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Phil

    (@philsbury)

    Hi Sarah,

    It turns out the files were missing from the plugin, which has now been fixed. An SVN issue (between me and SVN!).

    Onto the bigger issue, I’ve have a quick look at your site and that page has the following in the code:

    var ag = {a: 18,r: 0, ...etc }

    The r: 0 indicates the page is not required – so I assume in the admin you ticked the “Restrict this page” box?

    If not, I have another issue raised to do with WooCommerce so I’ll dig into them both together.

    Thanks
    Phil

    Thread Starter naturalhistory

    (@naturalhistory)

    Hi Phil,

    Thank you for updating the plugin so promptly – that’s very kind of you, and the errors are all gone now.

    Everything is working perfectly now – thank you!

    Best,

    Sarah

    Plugin Author Phil

    (@philsbury)

    Great. I’ve got an install of Woocommerce and can see it not showing on the shop page. I’ll have a look into that now.

    Cheers
    Phil

    Thread Starter naturalhistory

    (@naturalhistory)

    That’s what I thought at first too, but when you click on the individual products it pops up, which is fine for my purposes anyway. But yes – it probably would be better to have it actually work on the page itself.

    Best,

    Sarah

    Plugin Author Phil

    (@philsbury)

    The shop page is essentially an archive and archives are omitted from the age checks in “selected” mode by default. So I know why it’s happening – however the second part is that an archive doesn’t technically have an ID, so registering it as restricted becomes tricky.

    However, Woocommerce registers a setting (woocommerce_shop_page_id) so when we’re on a products page we can get the restriction. What I need to do is a little rewrite on the test test that determines if we need to do an age check and that way should get it working.

    Long and the short of it is I know what needs to be done so there’ll be a fix fairly soon I hope ??

    Plugin Author Phil

    (@philsbury)

    Hi again Sarah,

    I’ve just put out 1.4.12 which will now restrict the shop page if you have the option checked.

    Any other issues do let me know.

    Thanks
    Phil

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not Showing On Specific Pages’ is closed to new replies.