0
Welcome Guest! Login
0 items Join Now

SOLVED Pull request?

    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    SOLVED Pull request?

    Posted 6 years 1 month ago
    • Hi guys,

      I moved a client onto PHP7 and had some issues with parts of Gantry 4 which I have solved. Is there somewhere to do a pull request?

      The issue was with
      body_contactform.php




      /wp-content/themes/rt_gantry_wp/html/layouts

      Line 75 needs to have preg_replace instead of eregi

      Line 115 needs to remove /n/n

      Hope that helps someone

      Error was: Fatal error: Uncaught Error: Call to undefined function ereg_replace() PHP 7

      The other error I can't remember but it was something about newline in header
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • No, Gantry 4 is not on github - I will pass your comments on though.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • There's actually more of an issue than I first thought.

      I changed line 75 to this as preg_replace expects a third argument


      			} else if ( !preg_replace("/^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$/", "", trim( $_POST['rt-contact-email'] ) ) ) {

      WARNING. I'm barely a coder
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • I've raised a ticket - our DEVS will check it all out in due course. There's even more to do because of PHP7.2 too.

      Regards, Mark.
    • The following users have thanked you: Eoin

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • This message contains only secure information that is visible to MrT, moderators and administrators
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • How long is Gantry 4 supported for?
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • We have not set any end date as yet. The majority of our portfolio is still Gantry 4 based (although G5 templates are catching up now as we only do new template releases for Gantry 5).

      So, at the moment, indefinitely, until we say otherwise.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • Cheers for responding. By the way this is accidentally in the Joomla! forum not the WordPress one.

      Even using an older version of PHP I'm not receiving contacts. I've replaced with a different form.
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Pull request?

    Posted 6 years 1 month ago
    • moved topic for you.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Pull request?

    Posted 6 years 4 weeks ago
    • Hi there,

      the corrected line 75 should look like this:
      } else if ( !preg_match('|^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$|i', trim( $_POST['rt-contact-email'] ) ) ) {

      Will be included in the next Gantry 4 update release. :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.064 seconds