By Felipe Rozo on Thursday, 22 November 2018
Posted in General Issues
Likes 0
Views 1.6K
Votes 0
Hi Manisha, please help me with this: After select a plan in https://maiten.com/soluciones/asistencia-cloud#planes you will see other page where you have to insert your details, and after that, clicking in COMPRAR (SHOP) it should go to payment gateway but now is displaying this error: 0 Error: 0 Call to a member function get() on string

I share ftp details below.

Please help me. Thanks

NOTE: Please do not update payplans because we customize checkout page.
Hello Felipe,

Backend credentials not working. Can you please cross check it and update me so i'll continue further.

Update us.
·
Thursday, 22 November 2018 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, details of first layer:

User: krileon
Password: Kolina98*-AsDFg

Joomla details:

User: marketing
Password: Maiten6807*%

Please update me if you can not access, thanks.
·
Thursday, 22 November 2018 21:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, please note that we update joomla to version 3.9.0, after that we had problem that I wrote above. We also updated payplans but we the problem continues.

Before joomla upate the site was working without any problems.

Help me pleaseee

Thanks
·
Friday, 23 November 2018 04:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Felipe,

Now i am able to connect with backend but can't able to set error reporting to maximum to see the error and also ftp details not working.

Response: 521 This user is not allowed to connect from this IP
Error: Critical error: Could not connect to server


Update us.
·
Friday, 23 November 2018 12:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, FTP details:

Server: webs.maiten.com
User: payplans
Pass: Londres*98*

Please help me, clients can not buy in our website. Thanks
·
Wednesday, 28 November 2018 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've already helped you to fix this issue.
Please take a look on this issue again and update me if still issue persist.
·
Wednesday, 28 November 2018 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, it is not working, please do this steps and you will see that payment button (PAGAR) is not working:

1. Go to https://maiten.com/soluciones/asistencia-cloud#planes and select any plan and click on COMPRAR AHORA
2. Put your details: Name, email, company and company number (eg: 0000)
3. Click on PAGAR at the bottom of page.

After point 3 it should redirect to payment gateway but it is not working because nothing happen when you click on PAGAR.

Please see attachment, there are some errors on google console.

Help me pleaseeee


Thank you
·
Wednesday, 28 November 2018 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I had to change TRUE to FALSE in the file: -> plugins/payplans/tos/tos/tmpl/orderconfirm.php in lines 32, 49 and 54.

Now PAGAR buttom is working with those changes but please check the reason of button is disabled to find a better solution.

Other thing that is not working after joomla and payplans update is: When user is in oneclickcheckout page she/he can change quantity of plan but the price on bottom is not being updated, please check attachments to understand what I'm saying.

Thank you
·
Wednesday, 28 November 2018 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

The javascript error is coming from JCH Optimize plugin. also advancepricing js file missing on plan page.
It seems you have done lot's of customization on invoice checkout page as well as. Can you please let me know the changes you made and in which file.
·
Thursday, 29 November 2018 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, if you want you can disable JCH plugin. I disable it some days ago but the problem continued.

Changes on invoice page are in templates/maiten/html/com_payplans/invoice

Thanks
·
Thursday, 29 November 2018 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, related to advancepricing js file that is missing on plan page, that error was months ago and the site was working correctly, so that file is not the reason (we test it puting that file but nothing happened). Please I appreciate if you can check why is the price is not changing when user selects a diferent quantity from field selector.

Thanks
·
Friday, 30 November 2018 05:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Felipe,

Ok, thanks for sharing detailed information.
I'll check and get back to you soon.
·
Friday, 30 November 2018 14:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, how are you? ..... Do you have any updates?.

Thank you.
·
Monday, 03 December 2018 09:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Sorry for the delayed response due to weekend.
I found the root cause of this issue, Can you please provide server access and error logs of lat 3 days.
·
Monday, 03 December 2018 10:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, what was the issue of root cause? .. I asked to my hosting provider about logs and server access but it will take some time.

Thanks
·
Monday, 03 December 2018 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, my hosting provider wrote me that is not possible send you server access because we have windows environment, not Linux, and related to logs we need to know which logs do you need so they can generate them.

It is possible to arrange a meeting via Team Viewer or Skype with my IT manager so you can talk directly with him and help us solving this problem? I think it would be great because we can do it in less time.

Thank you.
·
Monday, 03 December 2018 21:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, or please tell me what do you need to do in our server so I can ask to do it to my IT manager. Thanks
·
Monday, 03 December 2018 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ask them to share your server access and error logs. So i can check the request of invoice process.
·
Monday, 03 December 2018 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, because of security policies, we can not share server access, I'm sorry.

I have an idea: You can download a backup of our site from AKAEBA BACKUP COMPONENT so you can test it in you server or localhost. Please tell me if it is possible.

Thank you
·
Monday, 03 December 2018 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I had to comment lines 122 to 130 in file /templates/maiten/html/com_payplans/invoice/default_confirm.php to hide the quantity selector that is not working because maybe a client is going to buy.

But please download site with Akaeba, delete comment on that lines and try to help us solving that error. After that you can do the changes on our real site using ftp.

Thank you.
·
Tuesday, 04 December 2018 02:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha excuse me for write you again, but again is showing up: Error: 0
Call to a member function get() on string
·
Tuesday, 04 December 2018 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I am creating backup through Akeeba , will download and test this issue.
Thank you for understanding !
·
Tuesday, 04 December 2018 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok Manisha, let me know when you have any updates.
·
Tuesday, 04 December 2018 20:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ok, i'll update you once it get fixed.
·
Wednesday, 05 December 2018 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, how are you?

Do you have any updates?
·
Saturday, 08 December 2018 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey felipe,

I am really sorry for the delayed response.
I've debug your backup and fixed the issue. I am testing these changes. I'll update on your site once tested properly.

Thank you for understanding !
·
Saturday, 08 December 2018 14:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Sorry for delayed response. Please take a look on this issue again.
Let me know if still issue persist.
·
Monday, 10 December 2018 14:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, the problem persists: 0 Error: 0 Call to a member function get() on string

Please help me checking it again, and please do not forget the quantity selector that in this moment is comment out in lines 122 to 130 in file /templates/maiten/html/com_payplans/invoice/default_confirm.php

Thanks
·
Monday, 10 December 2018 20:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've checked the code and found that you are asking user registration whether user is logged in or not.
I think this can be asked only if user not logged in, is there any reason.

Also it seems this issue is coming with specific plan , can you let me know for which plan you are trying to purchase.
Update me.
·
Tuesday, 11 December 2018 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I've tried with Asistencia Cloud Inicial PLAN (this is the first plan). Please help me Manisha, mi boss is asking me about this problem everyday.

The problem with registration has a solution? or what I need to do? .. Sorry, I do not understand at all.

Thanks
·
Wednesday, 12 December 2018 01:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, I've tried with others plans but still getting error 0
·
Wednesday, 12 December 2018 02:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

The problem with registration has a solution? or what I need to do? .. Sorry, I do not understand at all.
The logic seems not correct. If user already logged in that case these details shouldn't be asked. The error is coming due to this. Because it's redirecting to the url after click on payment is (https://maiten.com/component/payplans/invoice/confirm), here payment key is missing.

It should be like (https://maiten.com/component/payplans/invoice/confirm/8O56WJCMA23O).

I would like to suggest you to use one click checkout plugin rather then this custom code because one click checkout plugin will do the same. I'll help you to setup accordingly.

Let me know your thoughts on this.

Thank you for understanding !
·
Wednesday, 12 December 2018 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, if we use One Click Checkout we will lose the customizations that we made? Please helppp meeeee.

Thank you.
·
Wednesday, 12 December 2018 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've done some changes at your site to resolve this issue. Please take a look on this and let me know.
The changes in below mentioned file.
root/templates/maiten/html/com_payplans/invoice/default_confirm.php

Thank you for understanding !
·
Thursday, 13 December 2018 13:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, we have tested it but the problems is again the same: ERROR 0.

Please I need to tell you that we have lost some days in this problem and my boss can't wait other days. Please help me checkin again, testing it in our site and please be sure that ERROR 0 is not showing up anymore.

Thanks.
·
Friday, 14 December 2018 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

My colleague Manisha is not around today, regarding with your initially issue (0 - Call to a member function get() on string) is actually coming from your customisation code which caused this issue.

We already troubleshoot this many hours ago but we still unable to figure out which part caused the root issue.

For now, I've applied temporary fix to prevent this error under this file JoomlaFolder/components/com_payplans/libraries/lib/subscription.php , can you give it a check and see whether everything work fine now? Remember double check those price value.

By the way, our support scope is not cover for those user site which already modified the Payplans core code, because we totally no ideas which file you did customised.

From what i see, you site not only customised on the OneClickCheckout plugin file, you still have installed 3rd party plugin and module to make your plan page become an ajax call when choose one of the plan.
·
Friday, 14 December 2018 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex, now error 0 is gone!!! Thank youuuuuuuuu ... I really appreciate Manisha's support and also your help. I understand that we make some customizations, but the website was working fine before update Payplans. If you can support just with a few things please, no more.

Please help me with this little thing:

1. When you change the quantity field (plan units) it should change the subtotal price, but for some reason (after payplans update) the subtotal is not changing: https://prnt.sc/luxe92 ... Please help me checking what is the problem.

2. Checking a suscription in Administrator that I previously did, I found the plan unit is not showing up, please see this (it should be 10 units but shows 0): https://prnt.sc/luxg3v ... This is very important for us because we do not know how many units of plan the user bought. Same as point 1, it worked before Payplans update.

3. I have an app of Notification Mailer for get an email when there is an active suscription. In body I have some tokens that works perfectly, but when I insert [[ADVANCEDPRICING_UNITS]] to get the plan units I do not get the units in email, besides I receive in my email the code [[ADVANCEDPRICING_UNITS]]. Please I need to receive that plan units in email because I need to inform to other areas in company about the new suscription (plan units, plan name, etc...)

That's all, please help me with this. Really appreciate your help.

Thank you very much
·
Friday, 14 December 2018 21:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Sorry for the delayed response due to weekend.

1. Before updating payplans have you take backup ? is there any customization you did , was not there before done payplans update.

2. I've checked and found that unit is not saving in params , that's why it's showing blank. Can you please cross check your code to save units in params. see attached screen shot.

3. The token replacement issue is already fixed and app is released also. this issue is coming because unit is not saving.
so, you need to cross check the code to save unit as mentioned in point 2.

Let me know if you have any query.
·
Monday, 17 December 2018 10:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

How can i get to save unit? What file I need to change? ... Or please can you update it for me?. Thank you Manisha.
·
Monday, 17 December 2018 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

You need to save unit value in subscription params. As you have did customization so add it to proper place.
See attached screen shot for reference to set param on subscription.

sample code

$subscription->setParam('units', $units);
$subscription->save()


Thank you for understanding !
·
Tuesday, 18 December 2018 10:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I tried to insert those lines in /plugins/payplans/advancedpricing but I got the same problem (can't get units on email or in administrator joomla on payplans component).

Please Manisha could you check? maybe I put those lines in a not correct place or file. Help me please.
·
Wednesday, 19 December 2018 22:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ok. I've checked and didn't found your changes. Let me explain you the process you did. You are allowing user to change units on invoice page also. so you need to save the unit values when user confirm the checkout or through ajax when user select quantity.
Can you tell me where you did the changes, so i'll verify it.

Thank you for understanding !
·
Thursday, 20 December 2018 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I applied the code:

$subscription->setParam('units', $units);
$subscription->save()

in the file checkout and advanced pricing but I had to remove it because in page display an error probably because I insert it wrong. Please could you tell me where I have to insert it? ... There is just those bugs left, so there are the last things I need to be able to show to manager. Please.
·
Thursday, 20 December 2018 10:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ok, I've checked and found some other issue. When i select another quantity on invoice checkout price is not calculating. It's always same whatever is the quantity value. see attached screen shot. Also you are saving units field somewhere else also (Cantidad: 0), can you remove it where you did the changes.

Also i've modifed the file to save units on below mentioned file path in function fgc_ajax_modify_invoiceAjax.
root/modules/mod_articles_asistenciacloud/helper.php
see attached screen shot.

Please check your code again for calculating price and check the changes i did above mentioned file.
·
Thursday, 20 December 2018 11:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

1. The bug of quantity that is not changing I do not know why, but also was affected after payplans update because before that the price was changing dynamically when select a different quantity from selector field. Please could you check why is not changing?

2. With modification that you did to save units I will be able to see plan units in payplans subscription in joomla panel?

Thank you for your great support Manisha =)
·
Thursday, 20 December 2018 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ok, I'll let you know about this , i am working on your site.
Also let me know have you created backup before upgrading PayPlans.
·
Thursday, 20 December 2018 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I do not have backup. Please let me know when you will be able to check those 2 problems and please help me check why is it displaying PURCHASE UNITS: 0 insted of the real units that user selected on purchase in subscription overview in joomla panel. I've checked the code you added helper.php file, but the problem with units is the same in joomla administrator where I can not see the units that user bought.

Finally, just to clarify what I need, I copy and paste again what I need please, help me solving this to finish with this because I need it before the year ends:

1. When you change the quantity field (plan units) it should change the subtotal price, but for some reason (after payplans update) the subtotal is not changing: https://prnt.sc/luxe92 ... Please help me checking what is the problem.

2. Checking a suscription in Administrator that I previously did, I found the plan unit is not showing up, please see this (it should be 10 units but shows 0): https://prnt.sc/luxg3v ... This is very important for us because we do not know how many units of plan the user bought. Same as point 1, it worked before Payplans update.

3. I have an app of Notification Mailer for get an email when there is an active suscription. In body I have some tokens that works perfectly, but when I insert [[ADVANCEDPRICING_UNITS]] to get the plan units I do not get the units in email, besides I receive in my email the code [[ADVANCEDPRICING_UNITS]]. Please I need to receive that plan units in email because I need to inform to other areas in company about the new suscription (plan units, plan name, etc...)

Thank you
·
Thursday, 20 December 2018 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Maybe in /plugins/advancedpricing/advancedpricing.php file this code: $units = $subscription->getParams()->get('units', 0); should be there?
·
Thursday, 20 December 2018 23:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Ok, thanks for sharing details information on this.
I am checking this issue and let you know.

Thank you for understanding !
·
Friday, 21 December 2018 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok Manisha, please let me know if you can do it before weekend, I need to show it to my boss. Thank you for your support.

Felipe
·
Friday, 21 December 2018 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Sorry for the delayed response.
I've debug the issue, today m not able to connect with ftp.
Have you changed it ?
·
Monday, 24 December 2018 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha you can use same ftp details. I did not change them.

Please let me know if you can connect or please use Akaeeba Backup to test on local host environment.

Thanks.

Felipe
·
Monday, 24 December 2018 11:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Ok, now able to connect with ftp.
·
Monday, 24 December 2018 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, any updates?
Thanks
·
Tuesday, 25 December 2018 01:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Sorry for delay , yesterday was holiday .
Half of your issue is resolved, i am testing this on my local, will update on your site today.
·
Wednesday, 26 December 2018 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've already helped you to fix the issue related to update plan unit in subscription param. see attached screen shot.
Once user click on checkout , you will be able to see the plan unit in backend.

Regarding price calculation issue when you select quantity on invoice checkout page, it's not working properly because of java-script error. Some of code you've commented but still those fields you are still using in js. So you need to check the code and update the js accordingly. Some of issues related to js i already fixed but you need to check the code (you can check the errors in console.).
/templates/maiten/html/com_payplans/invoice/default_invoice.php

Let me know if you have any query.
·
Wednesday, 26 December 2018 12:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

I test it buying a subscription and in backend I see plan units, thank you.

But now, I got the same error 0 - Call to a member function set() on string (please see attachment ErrorACM.jpg).

Regarding to price calculation really I do not lnow what to do to get it fixed, could you help me please?, It is just that last thing I need.


Thanks
·
Wednesday, 26 December 2018 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've tried to check again but didn't hit this issue. When you are hitting this this.

Regarding price calculation through ajax, i've tried to fix some of js issues, but actaully you comment out some of the code, which you are using in js. See attached screen shot. Try to remove unwanted code , so you will be able to correct this issue. I've tried already to fix some of what i understand from your code.
·
Thursday, 27 December 2018 11:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Manisha, I get the error before going to payment method, I mean, after you put details and click on PAGAR (PAY). This is the most important thing please, that error should not appear, I think your teammate Arlex fix it some days ago but again is showing up. Help me pleaseeeeee
·
Thursday, 27 December 2018 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
It is rare the price calculation that is not working, it seems like something related to the currency ARS of app TAX.
·
Thursday, 27 December 2018 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

Regarding the previous changes, these are already there. I am not hitting this error.
Also i've already helped you to fix price calculation issue at your site by fixing js errors and also removed commented code from that file. I've created one file in same template override folder default_confirm_old.php which contain all the code (including commented code also).
root/templates/maiten/html/com_payplans/invoice/default_confirm.php

Please tak a look on this issue again.
·
Thursday, 27 December 2018 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, I got the 0 string error again, please see attachment. Please try it using an INCOGNITO WINDOW because with it you will see the error. Please see the comment that Arlex wrote some days ago where he fix it: "For now, I've applied temporary fix to prevent this error under this file JoomlaFolder/components/com_payplans/libraries/lib/subscription.php , can you give it a check and see whether everything work fine now? Remember double check those price value."
·
Thursday, 27 December 2018 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Felipe,

I've already helped you to fix the 0 string error at your site and a yesterday fixed the javascript issue.
Please take a look on this issue, you need to check the price calculation (you need to verify the logic) is correct or not because i fixed the javascript error (price calculation is working correctly) .
Changes in below mentioned file paths :
JoomlaFolder/components/com_payplans/libraries/lib/subscription.php
JoomlaFolder/templates/maiten/html/com_payplans/invoice/default_confirm.php
JoomlaFolder/plugins/payplans/advancedpricing/advancepricing.php


By the way, our support scope is not cover for those user site which already modified the Payplans core code. I've already helped you to fix the mentioned issue in your customized code. If further if you have any query regarding your custom code , we will not be able to accommodate your request as outlined here. https://stackideas.com/support


Thank you for understanding !
·
Friday, 28 December 2018 13:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, really really really thank you for your great support. I appreciate your help with our site. Thank you very much.

Just a question regarding to user registration: When a user get register, receive a email with username and password, but this password is generating automatically by the system but the password is too long (strong) like this one: f4e19968db89fa40bda8a8286017d506, it is possible to make the password with fewer characters? can I change it from payplans config or joomla admin panel?

Thank you
·
Friday, 28 December 2018 22:09
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, regarding with your new question, perhaps you can start a new thread on our forum so it would help other moderator can easier to follow up your current issue.

I have locked and marked this thread as resolved to avoid confusions in the future.

Thanks for understanding.
·
Friday, 28 December 2018 22:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post