Forum Replies Created

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

    (@philreck)

    No I haven’t got any server caching plugins. Deleting the entire PDb plugin folder and replacing it with the old version restored the website so it seems that wordpress is crashing when it tries to start the plugin. Are there any changes between the two versions that require extra entries in the database?

    Thread Starter philreck

    (@philreck)

    Thanks very much – I’ll take a look

    Thread Starter philreck

    (@philreck)

    Hi,
    I have tested on a localhost server now and it is a conflict between nav_menu_roles & if_menu plugins.

    The wordpress 4.7 update must do something differently that causes a fatal error when both plugins are active – this did not happen in version 4.6.1

    Is this a case of waiting for a modification of WordPress or is there a method to make the plugins work together?

    Cheers
    Philip

    Thread Starter philreck

    (@philreck)

    Hi,
    Thanks for the reply. I don’t think this is a conflict. I have not changed any plugins, the only difference is that WordPress was updated to version 4.7 and the site crashed with the error mentioned. Once I deleted the wordpress installation files (excluding /wp-content and wp-config.php) and uploaded version 4.6.1 files instead everything worked again.

    The only possibility I can see for a conflict is if another plugin interacts differently between those two wordpress versions, as everything else is the same.

    Cheers
    Philip

    Thread Starter philreck

    (@philreck)

    Hi Roland,

    Thanks for that. It made me think about why I couldn’t make document.getElementsByName() to work – which is the equivalent of your solution, then I realised that it uses an array.

    In case anyone else is interested in using the Pikaday js calendar – this is the code in the html that works:

    <script>
    var picker = new Pikaday(
    {
    field: document.getElementsByName(“enter input name here”)[0],
    firstDay: 1,
    minDate: new Date(2000, 0, 1),
    maxDate: new Date(2020, 12, 31),
    yearRange: [2000,2020]
    });
    </script>

    You also need to add links to the js & css files which for editing a full record I put in edit_participant.php at the end:
    echo ‘
    <link rel=”stylesheet” href=”../wp-content/plugins/participants-database/css/pikaday.css”>
    <script src=”../wp-content/plugins/participants-database/js/moment.js”></script>
    <script src=”../wp-content/plugins/participants-database/js/moment.min.js”></script>
    <script src=”../wp-content/plugins/participants-database/js/pikaday.js”></script>

    <script>
    var picker = new Pikaday({
    field: document.getElementsByName(“enter input name here”)[0],
    firstDay: 1,
    minDate: new Date(2000, 0, 1),
    maxDate: new Date(2020, 12, 31),
    yearRange: [2000,2020]
    });
    }
    });
    </script>’

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