• Resolved suitedconnector

    (@suitedconnector)


    I have used PMPro on one site successfully and have added it to another. On th new site I used the PMPro Customization Plugin and added the code to make Level 1 default for free members.

    I have also added Register Helper which I used successfully on the first site. On this site I loaded the Register Helper Plugin. I have a problem though when I add the code snippet for Register Helper. I am getting a 403 error.

    I checked the error and there seems to be a conflict with the PMPro Customization Plugin.

    This is the error:

    [28-Aug-2021 01:22:27 UTC] PHP Warning:  Use of undefined constant “1” - assumed '“1”' (this will throw an Error in a future version of PHP) in /home/mywebsite.com/wp-content/plugins/pmpro-customizations/pmpro-customizations.php on line 14
    [28-Aug-2021 01:22:32 UTC] PHP Warning:  Use of undefined constant “PMPRO_DEFAULT_LEVEL” - assumed '“PMPRO_DEFAULT_LEVEL”' (this will throw an Error in a future version of PHP) in /home/mywebsite.com/wp-content/plugins/pmpro-customizations/pmpro-customizations.php on line 1
Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @suitedconnector

    This issue is due to custom code, specifically on line 1 and 14 of your custom plugin.

    It sounds like you need to wrap your code within quotation marks to remove this warning shared.

    The 403 issue is usually related to permissions of files (not being able to write to / save the file). You may need to adjust the file permissions you’re trying to write to.

Viewing 1 replies (of 1 total)
  • The topic ‘Register Helper Code Snippet Error’ is closed to new replies.