Andy Macaulay-Brook
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Minimum and maximum numbers of repeatable fields and groupsThanks. Before I close the ticket, if I make time to code a custom field or something like that, do you know of any existing issues or blockers that would stop me either making existing fields sort or making repeated fields and groups limitable?
Forum: Plugins
In reply to: [CMB2] Minimum and maximum numbers of repeatable fields and groupsThanks. While I’ve a general requirement, what I actually want, this time, is precisely three sets of fields that are sortable. So making three separate fields doesn’t get me far.
I can’t find anything that would do the trick though.
It’s purely the htaccess file rewrite rule. I set up an empty directory with a couple of test files, accessed one using https and the redirect generated was http and not https.
My fix on the site concerned is rather blunt. After a day without access to their documents, I was getting a bit frazzled. So my substitute rewrite rule uses https hardcoded and also the hostname. Something like:
RewriteEngine On RewriteRule (.+) https://example.com/docs/my-doc-slug/?bp-attachment=$1 [R=302,NC]
It would have been harder if you hadn’t put in the filter hook for the rewrite rules and passed the whole doc object!
If the default htaccess rewrite rule is falling back to http then I can only think it’s something in my ISP’s configuration, but it seems to me that with more thought than I had left a rewrite rule that copies the schema and host from the request would do the trick?
- This reply was modified 2 years, 5 months ago by Andy Macaulay-Brook.
I’ve found the filter hook bp_docs_attachments_generate_rewrite_rules and have adjusted the rewrite rules.
However, there doesn’t seem to be an easy way to bulk regenerate the htaccess files. How would I get a document loop in my small fix plugin using your public function calls?
Thanks.
Forum: Plugins
In reply to: [BuddyPress Docs] Htaccess producing malformed URLsResolved conflict with security of hosting by moving WP uploads directory.
Forum: Plugins
In reply to: [BuddyPress Docs] Htaccess producing malformed URLsHi, I believe it’s my host’s web app firewall.
Do you provide an option or filter that would let me relocate the document directory?
Thanks.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Can’t customise banner: CSS not savingThanks, I’ve done that and no change. I tried 755 too. I deactivated an reactivated the plugin, just to check. And I also ran through the wizard again to make sure.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Can’t customise banner: CSS not savingHi, no, sorry if that wasn’t clear, but there is no uploads/complianz folder.
Yes, those pages are set up correctly.
I’ve just tested on a clean WordPress 5.9.2, no plugins except this Stripe one and Twenty Twenty Two theme and the problem still occurs.
I should have been clearer, I started on the latest version and had this problem with that. Then I tried downgrading to narrow down which version seemed to introduce the issue.
Sure. That’s done and I’ve expanded my debugging info.
Just to add, I am using the accept_stripe_payment shortcode to summarise a custom basket:
[accept_stripe_payment name=”Test Store” description=”Stuff from Us” price=”1234″ button_text=”Pay Online”]
If I downgrade to version 2.0.37 of the plugin I have the problem.
If I downgrade to 2.0.19 then I get a redirect to my checkout result page instead of it appearing in the iframe.
- This reply was modified 2 years, 8 months ago by Andy Macaulay-Brook.
If I paste the iframe URL /asp-payment-box/?product_id=3408 into my browser, I get the payment box. I make a test payment and I am redirected correctly to /stripe-checkout-result/
Is there a plugin bug redirecting the iframe instead of the page or something like that?
I get this too. In Twenty Twenty it looks OK. It looks as though the loaded iframe is using my theme’s default template and so header, footer and so on are pulled in twice and the page is a mess.
However it is pulling the results into an iframe and not redirecting to the results page.
So, is there a way to redirect to the checkout results page as things used to be?
Is there something we can do to custom themes to ensure this doesn’t happen?Thanks
- This reply was modified 2 years, 8 months ago by Andy Macaulay-Brook.