Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the PayPal block is enabled, the page title (node) is substituted for the subscription name.
Happens only when user is logged in. Does not happen with anonymous user
I am using a slightly modified 'interactive_media' theme and it occurred to me that I may have damaged my page.tpl.php file giving rise to the error. Therefore I have checked the situation using the standard Garland theme and can report the same error.
Screenshots:
http://www.mrpauldriver.com/images/Screenshot_1.jpg
http://www.mrpauldriver.com/images/Screenshot_2.jpg
Comment | File | Size | Author |
---|---|---|---|
#12 | lm_paypal_subscription-option_to_set_page_title_or_not.patch | 3.71 KB | fleclerc |
Comments
Comment #1
MrPaulDriver CreditAttribution: MrPaulDriver commentedComment #2
lyricnz CreditAttribution: lyricnz commentedThis is not critical
Comment #3
MrPaulDriver CreditAttribution: MrPaulDriver commentedApologies for misunderstanding of protocol, I'm new to this.
Are you able to confirm as a bug or error on my part.
Comment #4
lyricnz CreditAttribution: lyricnz commentedIt seems likely you are right - I vaguely recall some code that sets the page title when it probably shouldn't. Which LM Paypal block are you talking about? (PS: none of the module maintainers are very active right now - we are relying on the community to provide patches for any reported defects)
Comment #5
MrPaulDriver CreditAttribution: MrPaulDriver commentedIt is the standard block that is bundled with the module.
Screenshot: http://www.mrpauldriver.com/images/Screenshot_4.png
Note also that some tags appear in the block name
Comment #6
lyricnz CreditAttribution: lyricnz commentedlm_paypal consists of several modules - both the donations module, and the subscriptions module, provide blocks.
I've applied an (ugly) fix to 6.x-2.x-dev (wait until the tgz is rebuilt if you're not using cvs). http://drupal.org/project/cvs/88100
Comment #7
MrPaulDriver CreditAttribution: MrPaulDriver commentedThank you. I'll look out for the tgz file
Comment #8
lyricnz CreditAttribution: lyricnz commentedIt was there well before you posted - http://ftp.drupal.org/files/projects/lm_paypal-6.x-2.x-dev.tar.gz
Comment #10
sahaj CreditAttribution: sahaj commentedThis issue seems to happen again with the D7 version and the LM Paypal Subscriptions module.
Maybe the D6 fixe can be updated?
Comment #11
sahaj CreditAttribution: sahaj commentedI have commented out the line 73 of the 'lm_paypal_subscriptions.pages.inc' file:
drupal_set_title(t('Subscription @name', array('@name' => $so->item_name)), PASS_THROUGH);
and the problem disappears... but I'm doubting that this should be the right solution ;)
Comment #12
fleclerc CreditAttribution: fleclerc commentedPatch attached.
adding an option in /admin/config/lm_paypal/subscriptions_settings to set the title or not.
thanks