Advertisement:

Author Topic: (Solved) Osclass Payments Membership plugin Blank Page  (Read 863 times)

heidenmason

  • Newbie
  • *
  • Posts: 36
(Solved) Osclass Payments Membership plugin Blank Page
« on: March 04, 2018, 08:59:07 am »
I purchased the Osclass Payments Membership plugin. I have an issue (see below), "Reported issue" well over a week ago, and have not had any response.

First of all I an a noob, thanks is advance to all who lend support.
Osclass 3.7.4 - USA theme

(Admin Side) when I modify settings
URL (https://website/oc-admin/index.php?page=plugins&action=renderplugin&route=payment-pro-admin-conf)
and click "Save Changes". It appears (happens really fast)as though it jumps to the top of the page, and then just displays a blank white page.
URL (https://website/oc-admin/index.php)
If I press the browser back button the page goes to where I was but with the "What I'd call a"  banner saying "Congratulations, the plugin is now configured" and again the URL (https://website/oc-admin/index.php?page=plugins&action=renderplugin&route=payment-pro-admin-conf)

I enabled the debug and got this "PHP Warning: Cannot modify header information - headers already sent by (output started at /home/SITE/public_html/oc-includes/osclass/utils.php:1738) in /home/SITE/public_html/oc-includes/osclass/utils.php on line 1743 " when I performed the above.

(User side) essentially the same white page, with different URLs, and having to press back to see page with banner.

With Osclass Payments Membership plugin active. I know that another plugin has the same issue of white pages. same error.
With Osclass Payments Membership plugin disabled. everything works. :)
I tried removing all plugins except Osclass Payments Membership and still had the same issue.

Anyone else experiencing this?

Hopefully I have described this situation well enough, again thanks is advance to all who lend support.
« Last Edit: March 05, 2018, 05:56:10 am by heidenmason »

Aficionado

  • Guest
Re: Osclass Payments Membership plugin Blank Page
« Reply #1 on: March 04, 2018, 11:55:52 am »
This is a paid plugin, so we can't possibly help much.

Bur the error usually means that some modified php code is wrong. Also could mean other hosting problems, like old PHP versions or short memory.

Of cource it could be also a problem with the plugin.




heidenmason

  • Newbie
  • *
  • Posts: 36
Re: Osclass Payments Membership plugin Blank Page
« Reply #2 on: March 04, 2018, 01:40:34 pm »
This is a paid plugin, so we can't possibly help much.
I understand, thanks, even a canned response from the plugin devs would have been great.

But the error usually means that some modified php code is wrong. Also could mean other hosting problems, like old PHP versions or short memory.
»Modified php code: I have made modifications to some of the code. I have NOT modified core files, to include utils.php as mentioned on the error.
Having not modified a lot of files. I've thought about removing all the modified code. Just haven't gotten to it yet.
»Hosting Problems: Prior to purchase of the plugin I did look at the requirements on the plugin page, and verified I met them.
»Short on Memory: Any thoughts on how to test/confirm memory issues?

»PHP Warning: Cannot modify header information... appears to have many causes. Like having an Echo before header, New-line characters or spaces before <?php, or BOMs.

Thank you Aficionado



Aficionado

  • Guest
Re: Osclass Payments Membership plugin Blank Page
« Reply #3 on: March 04, 2018, 01:45:46 pm »
What is your plan memory allowance ? Should be at least 128mb.

Your PHP version ? It should be at least 5.6.

Also enable OSCLASS DEBUG to a LOG and check for FATAL errors.


heidenmason

  • Newbie
  • *
  • Posts: 36
Re: Osclass Payments Membership plugin Blank Page
« Reply #4 on: March 04, 2018, 05:13:57 pm »
What is your plan memory allowance ? Should be at least 128mb.
»Memory Usage: currently  at 3.87M used of 1.00G allowance
Your PHP version ? It should be at least 5.6.
» PHP version: 5.6.33
Also enable OSCLASS DEBUG to a LOG and check for FATAL errors.
I followed the info here to enable debug & log.  https://doc.osclass.org/Debug_PHP_errors. That is how I got
"PHP Warning: Cannot modify header information - headers already sent by (output started at /home/SITE/public_html/oc-includes/osclass/utils.php:1738) in /home/SITE/public_html/oc-includes/osclass/utils.php on line 1743"

Aficionado

  • Guest
Re: Osclass Payments Membership plugin Blank Page
« Reply #5 on: March 04, 2018, 05:28:35 pm »
Then you should do the following:

1. Make a full backup. Osclass directory and DB.

2. Delete your Osclass folder

3. Upload a new UNtouched set of files

4. Copy your settings of your old config.php of Osclass to the new one carefully (do not introduce any spaces)

See if the error is gone.

If gone, then some mod you did, is the cause.


heidenmason

  • Newbie
  • *
  • Posts: 36
Re: Osclass Payments Membership plugin Blank Page
« Reply #6 on: March 05, 2018, 05:55:20 am »
Then you should do the following:

1. Make a full backup. Osclass directory and DB.

2. Delete your Osclass folder

3. Upload a new UNtouched set of files

4. Copy your settings of your old config.php of Osclass to the new one carefully (do not introduce any spaces)

See if the error is gone.

If gone, then some mod you did, is the cause.
Followed above, made a dummy user, changed the theme to USA, installed plugin, made "config.php" file as instructed by Osclass Payments Membership plugin, no errors. (didn't do any live transactions)
So now the error is gone. YAY ~ but I don't know what the causes were. So I don't know how to prevent it from happening again, if it does.

I will message the Dev's again and link to this tread.

Aficionado, Thanks for being very helpful,  I liked your clearly started replies, that were instructive and informative.

I hope this thread is helpful to others, especially noobs like me.
« Last Edit: March 05, 2018, 06:33:58 am by heidenmason »

NDboots

  • Newbie
  • *
  • Posts: 4
Re: (Solved) Osclass Payments Membership plugin Blank Page
« Reply #7 on: June 09, 2018, 06:47:58 pm »
I had this same problem with new install of Payment Pro when trying to activate PayPal Payments.  I got a error code saying this:

Please, change the crypt key (PAYMENT_PRO_CRYPT_KEY) in /home/myserverplace/public_html/mydomainplace/oc-content/plugins/payment_pro/config.php.

Then it had a click link telling if the config.php file was not there to make that file adding this code to it, but change the password to something else with 24 digits:

<?php

  if(!defined('PAYMENT_PRO_CRYPT_KEY')) {
  define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');
 }

So I made a new file with that and changed the password to another with 24 digits and uploaded to correct location.  Then when attempted to install PayPal again, I got this message:

Warning: Cannot modify header information - headers already sent by (output started at /home/myserverplace/public_html/mydomainplace/oc-content/plugins/payment_pro/config.php:1) in /home/myserveplace/public_html/mydomainplace/oc-includes/osclass/utils.php on line 1743

I read in this form to make sure no white spaces above or after <?php  and there was not.  Then I read this post to backup my files/database and reinstall everything.  Before I did that, I took one more look at the code the popup wanted me to install in the new config.php file......

<?php

  if(!defined('PAYMENT_PRO_CRYPT_KEY')) {
  define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');
 }

And there it was!  A little error that made a big headache for several of us who are no experts with php.  It was in this line....

define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');

Notice there is an extra SPACE after the comma!  I REMOVED THAT SPACE to read this:

define('PAYMENT_PRO_CRYPT_KEY','randompasswordchangethis');

Then went back in to finish the install of PayPal, and it worked!
« Last Edit: June 09, 2018, 06:50:07 pm by NDboots »

bblori

  • Newbie
  • *
  • Posts: 2
Re: (Solved) Osclass Payments Membership plugin Blank Page
« Reply #8 on: December 15, 2018, 10:22:27 pm »
Inside of plugins index page top insert this:

<?php
ob_start();
session_start();
?>

!!Administrator don't delete the posts!