Forum Replies Created

Viewing 15 replies - 46 through 60 (of 178 total)
  • Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Okay so this actually didn’t had anything to do with the base functionality of BPS, this was actually a “security” header set by default on all our HTACCESS files being the following:

    Header always edit Set-Cookie (.*) “$1;HttpOnly;Secure”

    This one caused the error, I’m still a bit uncertain to why this header edit change actually causes the bug, but after manually removing it, the bug was resolved.

    Therefore it was not Astra nor BPS, it was a self set security header, however I still do wonder to why this is actually happening as that header shouldn’t actually do much other than putting every cookie to secure.

    If anyone has any suggestions to “fix” this Header to still have the possibility to have all my cookies secure then that would be awesome!

    Thanks in advance and sorry for the troubles!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Okay so this actually didn’t had anything to do with the base functionality of BPS, this was actually a “security” header set by default on all our HTACCESS files being the following:

    Header always edit Set-Cookie (.*) “$1;HttpOnly;Secure”

    This one caused the error, I’m still a bit uncertain to why this header edit change actually causes the bug, but after manually removing it, the bug was resolved.

    Therefore it was not Astra nor BPS, it was a self set security header, however I still do wonder to why this is actually happening as that header shouldn’t actually do much other than putting every cookie to secure.

    If anyone has any suggestions to “fix” this Header to still have the possibility to have all my cookies secure then that would be awesome!

    Thanks in advance and sorry for the troubles!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    So further debugging and investigating, I found that it was related to the secure HTACCESS file made by Bullet Proof Security that was causing this error.

    So I will now be pinpointing it, to what exactly is blocking this AJAX request and will also create a support ticket on BPS to perhaps find the problem together!

    At least it’s one step in the right direction.

    Just quick note that the following were DEFINITELY NOT the problem:

    – Caching (WP Rocket)
    – Error Code posted above
    – Active plugins

    • This reply was modified 6 years, 11 months ago by RafaelDeJongh.
    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    @nikschavan

    This is not the case as I mentioned already, this bug is also present without WP Rocket active! And is apparent in the main Astra theme which I first thought wasn’t the case.

    It is not caching, it’s an actual bug and I suggest you to try my steps to reproduce the error. (WP Rocket is disabled and all cache has been removed btw).

    Ps: as mentioned on the link, it should work fine with AJAX and I do think that Astra uses this instead of adding it via PHP, or am I wrong on this?

    • This reply was modified 6 years, 11 months ago by RafaelDeJongh.
    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Update on this:

    This update seems to be also present in the actual main theme as well, I first thought this wasn’t the case but after multiple tests, it comes out that the handling of the single product page add to cart does in fact reproduce the error I am mentioning above.

    You can reproduce this error with the following steps:

    1. Go to your WooCommerce Shop Page
    2. Click on a category
    3. Click on a single product
    4. Click Add to Cart

    After these 4 steps you will see that the number of the mini-cart swiftly changes from a 1 to a 0.

    This is also only the case when you actually add it on a single product, when you’re on the archive/category page and click the “Add To Cart” button, then it does work. However because I changed this in my child theme to just link to the Single Product this has no use for me and makes it nonfunctional.

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    I can confirm that this update fixes the 500 error.
    However the other problem of mine still persist but I’ll make another thread about this and mark this as resolved.

    Thanks for the swift changes!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Thanks for the fast reply! Here is the error in case you were wondering what caused the 500 error:

    [Thu Mar 29 12:35:13.666445 2018] [proxy_fcgi:error] [pid 9978:tid 140204769732352] [client 84.197.125.141:60916] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'ElementorPro\\Modules\\ThemeBuilder\\Module' not found in /var/www/vhosts/themovielot.com/httpdocs/wp-content/themes/astra/inc/compatibility/class-astra-elementor-pro.php:144\nStack trace:\n#0 /var/www/vhosts/themovielot.com/httpdocs/wp-includes/class-wp-hook.php(286): ElementorPro\\Modules\\ThemeBuilder\\ThemeSupport\\Astra_Elementor_Pro->override_meta(Object(WP))\n#1 /var/www/vhosts/themovielot.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#2 /var/www/vhosts/themovielot.com/httpdocs/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\n#3 /var/www/vhosts/themovielot.com/httpdocs/wp-includes/class-wp.php(726): do_action_ref_array('wp', Array)\n#4 /var/www/vhosts/themovielot.com/httpdocs/wp-includes/functions.php(960): WP->main('')\n#5 /var/www/vhosts/themovielot.com/httpdocs/wp-blog-header.php(16): wp()\n#6 /var/www/vhosts/themovielot.com/httpdocs/index.php(17): require('/var/www/vhosts...')\n#7 {main}\n thrown in /var/www/vhos...\n'

    I also have another error which might explain a bit more regarding the problem I e-mailed you about (which I’ve yet to receive an answer on):

    [Thu Mar 29 00:18:19.101147 2018] [proxy_fcgi:error] [pid 10353:tid 140204769732352] [client 62.205.118.36:36174] AH01071: Got error 'PHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_elementor_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, Elementor\\Core\\Ajax_Manager->handle_ajax_request, call_user_func, Elementor\\Widgets_Manager->ajax_render_widget, Elementor\\Core\\Base\\Document->render_element, Elementor\\Widget_Base->render_content, ElementorPro\\Modules\\Woocommerce\\Skins\\Skin_Classic->render, wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include('/plugins/woocommerce/templates/loop/add-to-cart.php'), WC_Product_Simple->add_to_cart_text, apply_filters('woocommerce_product_add_to_cart_text'), WP_Hook->apply_filters, custom_woocommerce_product_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_elementor_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, Elementor\\Core\\Ajax_Manager->handle_ajax_request, call_user_func, Elementor\\Widgets_Manager->ajax_render_widget, Elementor\\Core\\Base\\Document->render_element, Elementor\\Widget_Base->render_content, ElementorPro\\Modules\\Woocommerce\\Skins\\Skin_Classic->render, wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include('/plugins/woocommerce/templates/loop/add-to-cart.php'), WC_Product_Simple->add_to_cart_text, apply_filters('woocommerce_product_add_to_cart_text'), WP_Hook->apply_filters, custom_woocommerce_product_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_elementor_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, Elementor\\Core\\Ajax_Manager->handle_ajax_request, call_user_func, Elementor\\Widgets_Manager->ajax_render_widget, Elementor\\Core\\Base\\Document->render_element, Elementor\\Widget_Base->render_content, ElementorPro\\Modules\\Woocommerce\\Skins\\Skin_Classic->render, wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include('/plugins/woocommerce/templates/loop/add-to-cart.php'), WC_Product_Simple->add_to_cart_text, apply_filters('woocommerce_product_add_to_cart_text'), WP_Hook->apply_filters, custom_woocommerce_product_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_elementor_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, Elementor\\Core\\Ajax_Manager->handle_ajax_request, call_user_func, Elementor\\Widgets_Manager->ajax_render_widget, Elementor\\Core\\Base\\Document->render_element, Elementor\\Widget_Base->render_content, ElementorPro\\Modules\\Woocommerce\\Skins\\Skin_Classic->render, wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include('/plugins/woocommerce/templates/loop/add-to-cart.php'), WC_Product_Simple->add_to_cart_text, apply_filters('woocommerce_product_add_to_cart_text'), WP_Hook->apply_filters, custom_woocommerce_product_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\n', referer: https://themovielot.com.136-144-155-100.lonelyalien.com/wp-admin/post.php?post=10&action=elementor

    Hope this can help to solve either of both errors!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Thank you for the quick fix @munirkamal!

    I assume I can set this to solved as the bug will probably be patched in the next release of this theme.

    Thanks again for the direct assistance!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Yea sure I’ll reply it via mail!

    Thanks for the fast response by the way! I mailed you as well as I didn’t think I would get such a fast reply!

    • This reply was modified 6 years, 11 months ago by RafaelDeJongh.
    • This reply was modified 6 years, 11 months ago by RafaelDeJongh.
    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Well that worked better than expected! Thanks for the assistance.

    Would be great to have a default html editor though!

    For those who want to do the same here’s an example of the code with my template:

    
    function reservation_admin_message(){
      return '<!doctype html><html xmlns="https://www.w3.org/1999/xhtml" dir="ltr" lang="nl"><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="format-detection" content="telephone=no"/><style>body{margin:0;padding:0;min-width:100%;width:100%!important;height:100%!important} body,table,td,div,p,a{-webkit-font-smoothing:antialiased;text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:100%} table,td{mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse!important;border-spacing:0} img{border:0;line-height:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;max-width:100%;height:auto} #outlook a{padding:0} #mainbody{background:#ffffff} .ReadMsgBody{width:100%} .ExternalClass{width:100%} .ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{line-height:100%} a{color:#222222}a:hover{color:#e3c64e} a img{transition:all .3s ease}a:hover img{opacity:.9} strong{font-weight:600} .resbtn{width:100%;display:block;border-radius:5px}</style> <title>getRank - Reservering</title></head><body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0" marginwidth="0" marginheight="0" width="100%" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0;width:100%;height:100%;-webkit-font-smoothing:antialiased;text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:100%;background-color:#fafafa;color:#000000" bgcolor="#fafafa" text="#000"><table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0;width:100%" class="background">
      <tr>
       <td align="center" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0" bgcolor="#fafafa">
        <table id="mainbody" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" width="750" style="border-collapse:separate!important;border-spacing:0;padding:0;width:inherit;max-width:750px;margin-top:50px;-webkit-box-shadow:0 1px 4px #dddddd;-moz-box-shadow:0 1px 4px #dddddd;box-shadow:0 1px 4px #dddddd;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;border:1px solid #dddddd;background:#ffffff!important" class="container">
         <tr style="border-collapse:collapse;border-spacing:0;margin:0;padding:0;-webkit-border-top-left-radius:8px;-webkit-border-top-right-radius:8px;-moz-border-radius-topleft:8px;-moz-border-radius-topright:8px;border-top-left-radius:8px;border-top-right-radius:8px">
          <td align="center" class="header" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0;padding-left:6%;padding-right:6%;width:88%;padding-top:10px;padding-bottom:10px;background:#e3c64e;-webkit-border-top-left-radius:8px;-webkit-border-top-right-radius:8px;-moz-border-radius-topleft:8px;-moz-border-radius-topright:8px;border-top-left-radius:8px;border-top-right-radius:8px"><img border="0" vspace="0" hspace="0" src="https://www.tzotkiekske.be/wp-content/uploads/2017/10/tzotkiekske-logo-w.png" width="300" height="70" alt="‘t zot kiekske" title="‘t zot kiekske" style="color:#000000;font-size:10px;margin:0;padding:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;border:none;display:block;max-width:100%;height:auto"/>
          </td>
         </tr>
         <tr>
          <td align="center" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:15px 6%;width:88%;font-size:20px;font-weight:bold;line-height:130%;color:#000000;font-family:sans-serif" class="header">
          Er is een nieuwe reservering aangevraagd door:
          </td>
         </tr>
         <tr>
          <td align="center" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0 6% 20px;width:88%;font-size:17px;font-weight:400;line-height:160%;color:#000000;font-family:sans-serif;white-space:pre-line;text-align:left;border-width:2px 0 2px 0;border-style:solid;border-color:#e3c64e;" class="paragraph">
          <strong style="font-weight:600">Gereserveerd voor:</strong> {date}
          <strong style="font-weight:600">Reserverende:</strong> {user_name}
          <strong style="font-weight:600">Met:</strong> {party} personen
          <strong style="font-weight:600">E-mail:</strong> <a href="mailto:{user_email}?subject=‘t zot kiekske reserveringsaanvraag: {user_name} - {party} Personen - Tegen: {date}">{user_email}</a>
          <strong style="font-weight:600">Telefoon:</strong> <a href="tel:{phone}">{phone}</a>
          <br>{message}
          </td>
         </tr>
         <tr>
          <td align="center" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:20px 6%;width:88%;font-size:13px;font-weight:400;line-height:150%;font-family:sans-serif" class="footer">
            <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;margin:0;padding:0;width:100%">
              <tr>
                <td align="center" valign="middle" style="margin:0;padding:0 10px;border-collapse:collapse;border-spacing:0;width:33.333%"><a href="{bookings_link}" target="_blank" style="background:#00a1f1;width:100%;display:block;border-radius:5px" class="resbtn"><img src="https://www.tzotkiekske.be/wp-content/uploads/2018/02/view.png" alt="Bekijk nog niet bevestigde reserveringen" title="Bekijk nog niet bevestigde reserveringen"/></a></td>
                <td align="center" valign="middle" style="margin:0;padding:0 10px;border-collapse:collapse;border-spacing:0;width:33.333%"><a href="{confirm_link}" target="_blank" style="background:#7dbb00;width:100%;display:block;border-radius:5px" class="resbtn"><img src="https://www.tzotkiekske.be/wp-content/uploads/2018/02/accept.png" alt="Bevestig deze reservering" title="Bevestig deze reservering"/></a></td>
                <td align="center" valign="middle" style="margin:0;padding:0 10px;border-collapse:collapse;border-spacing:0;width:33.333%"><a href="{close_link}" target="_blank" style="background:#ea4235;width:100%;display:block;border-radius:5px" class="resbtn"><img src="https://www.tzotkiekske.be/wp-content/uploads/2018/02/deny.png" alt="Weiger deze reservering" title="Weiger deze reservering"/></a></td>
                </tr>
           </table>
          </td>
         </tr>
         <tr>
          <td align="center" valign="top" style="border-collapse:collapse;border-spacing:0;margin:0;padding:20px 6%;width:88%;font-size:13px;font-weight:400;line-height:150%;font-family:sans-serif;border-top:2px solid #e3c64e" class="footer">
           Copyright &copy; 2018 | <a href="https://www.tzotkiekske.be" target="_blank">‘t zot kiekske</a> | <a href="mailto:[email protected]" target="_blank">[email protected]</a> | Alle rechten voorbehouden.
          </td>
         </tr>
         </td>
         </tr>
        </table>
       </td>
      </tr>
     </table>
    </body>
    </html>';
    }
    add_filter('rtb-setting-template-booking-admin','reservation_admin_message');

    I did had to remove the auto link formatting that was hard coded in the plugin but well after that everything works ??

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Dear Nate

    Ah that’s pretty handy! Thanks a bunch!

    Sincerely,
    Rafa?l De Jongh

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Yea I am in contact with my webhost support but they don’t know what’s the cause either. So not really sure why it’s causing this but I do think this might indeed be a host problem so I’ll get back to them with this information.

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Alright great, I’ll take a look at those hooks!
    Much appreciated!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    @ingonieur

    This is perfect and well it doesn’t look like the plugin gets that many updates, so I’m quite happy we finally got a way to properly showcase the full formats!

    Thanks a bunch for pointing this out!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Bumping this once again, as I’m still looking for assistance to this problem!

Viewing 15 replies - 46 through 60 (of 178 total)