Creatium
Forum Replies Created
-
Hi. Still waiting for help.
Looks like the problem occurs only when I setup my secondary domain to link to specific page. So in settings:
http[s]://domain2com => https://domain1.com/mypage
This works for home page and when visiting domain2.com I see ‘mypage’ as homepage. However if I try to go to other pages, I keep getting 404 error. If I remove this setting and just keep this:
http[s]://domain2.com => https://domain1.com/
Then everything works. So to me it looks like your plugin is trying to redirect all pages to domain1.com/mypage even when I am going to domain2.com/myanotherpage it tries to open domain1.com/mypage/myanotherpage. Probably, Im not sure. But it def. looks like it. By default it probably should redirect only the homepage, not all other pages.
Hi. Sorry, not sure how a screenshot would help.
Here you go, just removed my page url.
http://foto.terpe.lt/inkelti/20200910/i59_Screenshot%202020-09-10%20093417.jpgAgain, only when this mapping is turned on, I get 404 errors. Tried playing with different settings, changing from SERVER_NAME to HTTP_HOST. Also checked debug log, saw no apparent errors.
.htaccess has these rules:
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L] # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>Plus mod_mime for AddType, mod_expires for caching, Deflate.
Update: getting 404 error only when domain is added to mapping. Tried with another domain and all pages work.
Forum: Plugins
In reply to: [Loco Translate] Prevent deletion of obsolete stringsThat is a nice idea, my good sir.
- This reply was modified 5 years, 9 months ago by Creatium.
Hi,
So as I mentioned, redirection problem comes only when Theme My Login Redirection plugin is installed. What it does: it allows me to set custom redirects on login, registration, logout etc. So there comes the problem of Critical error.
I contacted the developers of that plugin and they said:
It appears that plugin is not passing the correct arguments to the login_redirect filter.
So whose right? I believe in both of you 🙂
Well the checkbox isn’t a problem. Problem is increasing price after failed checkout.
Hi, no worries. Here’s what I do:
I have a checkbox in my checkout (added via pmprorh_add_checkout_box() and pmprorh_add_registration_field(), PMProRH_Field()). When user checks that box, I have to increase the price of the plan. I do that by tapping into pmpro_checkout_level filter and changing the $level->initial_payment and $level->billing_amount prices. This works as expected if there are no errors during the final checkout. But if some error occurs (say credit card number is wrong), then the checkout page is refreshed, error is shown, but the price is now the one that I set using the mentioned filter. So now when user clicks on that checkbox again (more like its already checked after the refresh), during the checkout filter adds again to the price.
In short everything looks like that:
– initial amount is 100
– user checks the checkbox, checks out
– filter checks if box is checked, adds to the price +100
– final price is 200
– error occurs (wrong card number, etc.), checkout form is refreshed
– initial amount now is 200
– user fixes the problem, checkbox has been checked from last time
– filter checks if box is checked, adds to the price +100
– final price is 300
…Hope this explains whats the problem. I could hard-code the price of plan into pmpro_checkout_level filter, but that’s not what I would like to do. So what I would expect is to somehow reset the $level->initial_payment and billing_amount to the original price and then apply the filter again.
Hi, yes. It was disabled for some unknown reason (maybe one of the plugins I used before did that).
After enabling it, everything works now as expected.
Forum: Plugins
In reply to: [Theme My Login] Login page for logged in usersThank you! Shouldn’t this be a default?
Great, thanks! I have another question, but I will post it as a separate for easier archiving.
For example to change the class of login button, inputs, add additional links (ok, this I can do in the template file). Maybe adding placeholders to inputs instead of labels.
Of course, I found a way around all this. Just curious of there is a way to edit those pages.
- This reply was modified 5 years, 11 months ago by Creatium.
Well that doesn’t really work, does it?
I mean the template file for Login page is this:
<?php echo pmpro_shortcode_login(''); ?>How am I supposed to edit this, documentation does not say.
Thank you!
Forum: Plugins
In reply to: [WP Media folders] Help Adding media files very very slowHey @dbarrere,
When I set plugin to move all existing media I eventually get timeouts and my whole web hangs for quite some time. Is there anything that I could do? Due to the slowliness I described before, I am trying to move files at night, hence plugin has to move quite a few files and change quite a few entries in the database. Thus the timeouts.
Can something quick be implemented to do the job in several parts not in a one huge request?
Forum: Plugins
In reply to: [WP Media folders] Help Adding media files very very slowLooks like for the time being my options is to disable the plugin while I’m working and then enable it at night at let it do its job.