GD Booster

This topic contains 7 replies, has 2 voices, and was last updated by  Paolo 9 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #33641

    Ian Butler
    Buyer
    Post count: 59

    Hi,

    I seem to have numerous problems with this add on – I’ve tried removing it and it breaks my site but keeping it there throws up PHP errors.

    Events has now suddenly stopped working – I have made no changes apart from trying to remove GD Booster.

    Can you help me try and fix this problem.

    Thanks Ian

    #33645

    Ian Butler
    Buyer
    Post count: 59

    I’m now getting this error after updating the plugins

    Fatal error: Cannot redeclare geodir_action_add_listing_page_title() (previously declared in /home/ibutler/public_html/wp-content/plugins/geodirectory/geodirectory_template_actions.php:1149) in /home/ibutler/public_html/wp-content/themes/zocialise/functions.php on line 410

    Is there somewhere I can move geodirectory_template_actions.php to make it safe from updates?

    #33647

    Ian Butler
    Buyer
    Post count: 59

    So I’ve had to reconfigure the plugin settings after the update and Events is now working again. Is there a way to stop this happening again?

    Thanks

    #33696

    Paolo
    Site Admin
    Post count: 31206

    Is there somewhere I can move geodirectory_template_actions.php to make it safe from updates?

    That is a core file shouldn’t be moved anywhere.

    If you need to modify any function present in that file, you should do it within your theme functions.php following this steps.

    1) remove the action that is calling the function you want to modify
    2) copy, paste and rename the function from a GD core file into functions.php
    3) edit the function as needed
    4) add a new action to call the new function.

    Here you can see a detailed example:

    https://wpgeodirectory.com/support/topic/change-entry-title-for-category-pages/

    Thanks

    #33777

    Ian Butler
    Buyer
    Post count: 59

    Thanks Paolo!

    I’ve also modified the following function from the events add-on gdevents_template_functions.php

    function geodir_event_show_event_fields_html($recuring_data = array())

    It doesn’t seem to have an add_action associated with it…..

    What would be the process of moving that into functions?

    #33815

    Paolo
    Site Admin
    Post count: 31206

    Is that to disable recurring option?

    The new version which are very close to release in beta, has an option to enable/disable recurring events for each price package.

    That way you wouldn’t need to tweak core files for this.

    Let us know,

    #34269

    Ian Butler
    Buyer
    Post count: 59

    No it’s to enter some text between fields

    #34300

    Paolo
    Site Admin
    Post count: 31206

    There is an action for that function too:

    add_action(‘geodir_event_add_fields_on_metabox’, ‘geodir_event_show_event_fields_html’);

    in gdevents-admin/admin_hooks_actions.php

    Let me know if this helps.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket