Vita-Nex: Core

Support => Module Support => Topic started by: ruaduck on May 19, 2015, 02:54:48 PM

Title: ADM Assistance
Post by: ruaduck on May 19, 2015, 02:54:48 PM
I am having issues with my ADM now that I have moved my server from PHP 5.4 to PHP 5.6

I get this error in my logs now

There was a problem connecting to the IPN server

I also get this error log: 18-Apr-2015 22:14:57 UTC] PHP Strict Standards:  Non-static method MySQL::query() should not be called statically in /home/rebirthu/public_html/ADM/IPN.php on line 205


Please let me know how to fix.
Title: Re: ADM Assistance
Post by: Vorspire on May 19, 2015, 05:22:40 PM
Change the '::' to '->' on that line, it should fix it.
Title: Re: ADM Assistance
Post by: ruaduck on May 20, 2015, 12:07:09 AM
Change the '::' to '->' on that line, it should fix it.

I made that change and now it doesn't even write to the log.
Title: Re: ADM Assistance
Post by: Vorspire on May 20, 2015, 04:27:18 PM
If you have no errors, then it is working.
If you want to enable logging, you have to change the option in the config file.
Make sure your /Logs directory is secured and/or password protected, for the safety of your donators.
Title: Re: ADM Assistance
Post by: ruaduck on May 21, 2015, 10:07:16 PM
I have had this module going for over a year.  This just started happening when i went from 5.4 to 5.6 in PHP .   The error log no longer shows errors, But now it doesn't even write to the transaction log like it did before and still doesn't post to the database.  I have the config file the same as it was before.  Nothing has changed on the Database information.
Title: Re: ADM Assistance
Post by: Vorspire on May 21, 2015, 10:33:31 PM
Hmm, that is strange.

Most of the errors are suppressed for security reasons, if you remove the @ prefix from the function calls in IPN.php, any errors should then be logged.
Title: Re: ADM Assistance
Post by: ruaduck on May 23, 2015, 03:18:44 PM
Hmm, that is strange.

Most of the errors are suppressed for security reasons, if you remove the @ prefix from the function calls in IPN.php, any errors should then be logged.

So looking at the mysql.php   it shows that mysql_pconnect() is now a depricated behavior as of 5.5 and that you must use mysqli to connect.   I am no longer getting this in an error log on line 205.   But i still get this on the transaction logs

ERROR:
There was a problem connecting to the IPN server (www.paypal.com)
Title: Re: ADM Assistance
Post by: Vorspire on May 23, 2015, 06:30:58 PM
Hmm, such is the burden of being restricted to lower PHP versions.

My webhost recently upgraded PHP too, so it will be easier for me to write compliant code.

You need to change all function calls named mysql_* to mysqli_*
There are also some function signatures that change, but Googling 'PHP mysqli_' will make it easier to determine.
Some of the arguments have the position of the connection resource object different.

If you get stuck, post here and I'll help.

I will update the download with an updated IPN.php soon.
Title: Re: ADM Assistance
Post by: ruaduck on May 28, 2015, 05:47:56 PM
Thank you Vorspire. I haven't had a change to go into depth on changing the IPN.php and MySQL.php to hopefully get it to work with XAMPP and 5.6
Title: Re: ADM Assistance
Post by: ruaduck on July 21, 2015, 03:28:05 AM
Have you had any chance to update this?  I haven't had a chance to work on it until now. I haven't gotten it work, but this is what I did
Title: Re: ADM Assistance
Post by: ruaduck on July 28, 2015, 04:28:36 AM
So after diving into it, it seems that there is something wrong between my server and Paypal.  I am not sure if the CURL is processing correctly and i am not quite sure how to test it.
Title: Re: ADM Assistance
Post by: Vorspire on July 28, 2015, 10:44:34 PM
I didn't update the PayPal IPN PHP because it will be obsolete with the next VNc AutoDonate module release, which will handle the IPN by listening for HTTP requests and handling them just like the PHP does. MySQL will still be an option, but will no longer be required as the internal IPN handler will be able to directly communicate with PayPal.

An automatically generated donation form can be injected in to your website with one line of JavaScript too; this feature has been developed and tested already.

The aim of the updates is to make sure everything works with as little fuss and configuration as required; currently, the AutoDonate module is the only module that requires 3rd party files in order to function properly; this will no longer be the case.

ETA on VNc 3.0 release is uncertain, but should be very soon, within the week.
Title: Re: ADM Assistance
Post by: Greed on July 29, 2015, 06:22:07 AM
Wowwww awesome!!!!! =D

Btw Lee, I finally figured out this was my issue all along. I stupidly didn't realize the webserver uses 5.6.22 (a thousand apologies for wasting your time before). Please forgive me! Also super excited about the next release. Woohoo!
Title: Re: ADM Assistance
Post by: ruaduck on July 29, 2015, 03:21:46 PM
You are awesome Vorspire!  Thanks for everything you are doing!
Title: Re: ADM Assistance
Post by: Vorspire on July 29, 2015, 11:41:51 PM
Glad you got it fixed though :D There is no time wasted, every journey has a destination worth visiting at least once.
Title: Re: ADM Assistance
Post by: ruaduck on August 14, 2015, 06:48:22 PM
Do you have an ETA yet on VNC 3?  I am quite excited for it actually with you adding ADM into the server side.
Title: Re: ADM Assistance
Post by: ruaduck on April 25, 2016, 02:20:40 AM
Since ADM got a total overhaul, how do i set it up to connect to my DB? I cannot find where i tell it to connect there to get the transactions.  Also is there new IPN files and such that go with 3.0?
Title: Re: ADM Assistance
Post by: Vorspire on May 18, 2016, 09:23:25 PM
The new module doesn't use databases.

Use [DonateAdmin to set everything up.

Point your web form IPN url to your server's IP, according to the descriptions for each option in the gump.

You must allow your server to listen to requests on port 80.
If you have apache or IIS enabled and using port 80, then the donations module will not work.

PayPal requires port 80 for communicating IPN data, it will not connect to any other port.

Transactions can be managed in real-time in the [DonateAdmin gump.