• Resolved teezi

    (@teezi)


    Hi!
    Just activated the Filters add-on and got these errors. I cannot see the Filters section in the admin pages, nor anywhere to add my licence key.

    Wordpress notice:
    The plugin generated 212 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    PHP warnings:
    Warning: Constants may only evaluate to scalar values in …/wp-content/plugins/ajax-load-more-filters/ajax-load-more-filters.php on line 25

    Notice: Use of undefined constant ALM_FILTERS_ITEM_NAME – assumed ‘ALM_FILTERS_ITEM_NAME’ in …/wp-content/plugins/ajax-load-more-filters/ajax-load-more-filters.php on line 1060

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter teezi

    (@teezi)

    UPDATE: Managed to access the Filters page and add my licence key. The Filters page displays nothing but this error:

    Fatal error: Can’t use function return value in write context in …/wp-content/plugins/ajax-load-more-filters/admin/views/filters.php on line 29

    Plugin Author Darren Cooney

    (@dcooney)

    Hi @teezi,
    I think there might be an issue with the installation because these errors don’t really match up to what I’m seeing in the source code.

    What PHP version is your site running?

    Thread Starter teezi

    (@teezi)

    I’m running a tad behind: PHP 5.4.
    Due for an upgrade this week.
    I’ll revert here if the upgrade doesn’t resolve it.

    Plugin Author Darren Cooney

    (@dcooney)

    Hi @teezi,
    Other users are reporting this as well in PHP version < 7.

    I’ve fixed the issue but will not push an update for a few days.

    In the meantime, if you wanted to fix the issue to remove the warning you modify to following:

    – Go to line #25 of ajax-load-more-filters.php
    – Remove the ALM_FILTERS_EXCLUDE_ARRAY define method, its not even needed and is actually deprecated.

    Hope this helps.

    Thread Starter teezi

    (@teezi)

    Thanks very much, Darren!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Errors when activating Filters add-on’ is closed to new replies.