vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - microCART: Shopping System for vB4 (https://vborg.vbsupport.ru/showthread.php?t=256723)

Lomak 01-13-2011 09:53 AM

I havent used coupons, but have removed the line anyway..

i'll let you know if this lets paypal update the status...

Lomak 01-13-2011 10:13 AM

I just bought something as a test...
i got a payment confirmation from paypal
I did not get the sql error.
Paypal did not update the status...
but also did not get any thank you emails from the system?

micheal332001 01-13-2011 10:13 AM

Quote:

Originally Posted by Lomak (Post 2148371)
I havent used coupons, but have removed the line anyway..

i'll let you know if this lets paypal update the status...

Thankyou and fingers crossed ;)

Lomak 01-13-2011 10:16 AM

Quote:

Originally Posted by Lomak (Post 2148379)
I just bought something as a test...
i got a payment confirmation from paypal
I did not get the sql error.
Paypal did not update the status...
but also did not get any thank you emails from the system?

sorry to be a pain... it's just that the store has gone live but the invoice system has got loads of bogus invoices in... only a few are genuine transactions

Dadoo 01-13-2011 12:03 PM

1 Attachment(s)
Translation updated. (for those who already are in 4.6.4_12012011, just replace /admincp/microcart_admin.php file)

Raffaele 01-13-2011 01:24 PM

1 Attachment(s)
Hello, micheal332001

I'm still experiencing the same problem if you add product to the cart it will show for all users/clients and it stays in the cart till the person removes it see examples picture. Does it unique uses user sessions? What i mean is each client session is unique.

The picture below shows that a friend of mine added something in to the cart and i was able to see it...

Thank you for the help.

micheal332001 01-13-2011 02:05 PM

Quote:

Originally Posted by Raffaele (Post 2148452)
Hello, micheal332001

I'm still experiencing the same problem if you add product to the cart it will show for all users/clients and it stays in the cart till the person removes it see examples picture. Does it unique uses user sessions? What i mean is each client session is unique.

The picture below shows that a friend of mine added something in to the cart and i was able to see it...

Thank you for the help.

if you can make me a admincp login to your site i will take alook but as far as i can tell this is down to the stored info within the database and is only showen to the user when the logged in userid matches the database info userid.

Please PM me with this info and ill look.

micheal332001 01-13-2011 02:21 PM

Quote:

Originally Posted by Lomak (Post 2148384)
sorry to be a pain... it's just that the store has gone live but the invoice system has got loads of bogus invoices in... only a few are genuine transactions


You can delete invoices from within the admincp edit invoices

Raffaele 01-13-2011 02:29 PM

Quote:

Originally Posted by micheal332001 (Post 2148471)
if you can make me a admincp login to your site i will take alook but as far as i can tell this is down to the stored info within the database and is only showen to the user when the logged in userid matches the database info userid.

Please PM me with this info and ill look.

PM send with info, thank you for your help

micheal332001 01-13-2011 02:59 PM

Quote:

Originally Posted by Raffaele (Post 2148486)
PM send with info, thank you for your help

Your versy welcome as i dont want this to be wrong in any way.
I want a quality product for others to use and not have problems with.

I have replyed to your PM and had alook at your site,
but i cannot make this happen in any way.

The cart or cart block will only show products you have added to the cart and will not show anyone elses orders.

Yes if i have alled a product to the cart it will show there till i delete the product from my cart as this info is stored within the database.
Even if you logout and then log back in it will still be there.

GamerPerfection 01-13-2011 04:09 PM

Quote:

Originally Posted by micheal332001 (Post 2148335)
Try re-uploading the files as it might have uploaded the files wrong the first time.

I uninstalled, removed ALL files. Downloaded the files again, reinstalled and uploaded everything to my localhost using XAMPP. Still have the same problem.

Everything in the AdminCP that links to options.php works, i.e.
General Options
Coming Soon
Payment Gateways

Anything that links to microcart_admin.php gets the error i posted earlier.

I am using XAMPP 1.7.3


EDIT: i put it on my live site and got this:

Quote:

Warning: require_once([path]/microcart/pdf/tcpdf.php) [function.require-once]: failed to open stream: No such file or directory in [path]/admincp/microcart_admin.php on line 23

Fatal error: require_once() [function.require]: Failed opening required '/home/gal10000/public_html/microcart/pdf/tcpdf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gal10000/public_html/admincp/microcart_admin.php on line 23

iwaa 01-13-2011 05:48 PM

I have the same issue as GamerPerfection. Before upgrading the script used to work nicely. Keep up the good work !

micheal332001 01-13-2011 06:13 PM

Quote:

Originally Posted by GamerPerfection (Post 2148526)
I uninstalled, removed ALL files. Downloaded the files again, reinstalled and uploaded everything to my localhost using XAMPP. Still have the same problem.

Everything in the AdminCP that links to options.php works, i.e.
General Options
Coming Soon
Payment Gateways

Anything that links to microcart_admin.php gets the error i posted earlier.

I am using XAMPP 1.7.3


EDIT: i put it on my live site and got this:

Quote:

Originally Posted by iwaa (Post 2148567)
I have the same issue as GamerPerfection. Before upgrading the script used to work nicely. Keep up the good work !


I have now found the error you are on about just remove the code within line 23 and all will be fine.
Im just uploading the new files now with the fix in place.

GamerPerfection 01-13-2011 06:29 PM

Quote:

Originally Posted by micheal332001 (Post 2148583)
I have now found the error you are on about just remove the code within line 23 and all will be fine.
Im just uploading the new files now with the fix in place.

Thanks, it works now. :up: Well on my live site, still not on XAMPP. But at least it works one way.

Lomak 01-13-2011 06:47 PM

I just bought something as a test...
i got a payment confirmation from paypal
I did not get the sql error. (becuase i removed that line)
Paypal did not update the status in the invoice system...
but also did not get any thank you emails from the system?
Any ideas?
sorry to be a pain... it's just that the store has gone live but the invoice system has got loads of bogus invoices in... only a few are genuine transactions

GamerPerfection 01-13-2011 07:07 PM

Just thought i'd mention, Screenshots tabs should say "Screenshots" not "Screenshoots". :)

Lomak 01-13-2011 08:56 PM

updated to your version from today.. 13012011a

when i click on 'view' in the invoice manager in AdminCP... I just get a blank page..

but thanks for adding the unique references!

ckgreenman 01-14-2011 12:12 AM

Quote:

Originally Posted by micheal332001 (Post 2148336)
Please send me a PM with admincp login details and i will have alook for you.
Also please send FTP login as i can check that everything is set right as well.

PM Sent. Thanks for taking a look

ckgreenman 01-14-2011 12:14 AM

Quote:

Originally Posted by GamerPerfection (Post 2148607)
Just thought i'd mention, Screenshots tabs should say "Screenshots" not "Screenshoots". :)

And Comming Soon should also read "Coming Soon"

:)

iwaa 01-14-2011 06:52 AM

Hello again,

After installing the new version I get the following error:
Code:

Fatal error: Class 'MYPDF' not found in /home/iwa/public_html/4x4off-road.ro/admincp/microcart_admin.php on line 1574
When trying to view an invoice from AdminCP. Editing seems to work.

Also when trying to view the invoice as the user you get the following error:
Code:

Warning: fopen(./microcart/pdf/fonts/php_Helvetica.afm) [function.fopen]: failed to open stream: Permission denied in [path]/microcart/pdf/class.pdf.php on line 1419

Warning: fwrite() expects parameter 1 to be resource, boolean given in [path]/microcart/pdf/class.pdf.php on line 1420

Warning: fclose() expects parameter 1 to be resource, boolean given in [path]/microcart/pdf/class.pdf.php on line 1421

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1937

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1938

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1939

Also I can translate the hole thing to Romanian if you provide me the lang file.

micheal332001 01-14-2011 07:17 AM

Quote:

Originally Posted by ckgreenman (Post 2148722)
PM Sent. Thanks for taking a look

Sent you a PM back please check.

Quote:

Originally Posted by iwaa (Post 2148836)
Hello again,

After installing the new version I get the following error:
Code:

Fatal error: Class 'MYPDF' not found in /home/iwa/public_html/4x4off-road.ro/admincp/microcart_admin.php on line 1574
When trying to view an invoice from AdminCP. Editing seems to work.

Also when trying to view the invoice as the user you get the following error:
Code:

Warning: fopen(./microcart/pdf/fonts/php_Helvetica.afm) [function.fopen]: failed to open stream: Permission denied in [path]/microcart/pdf/class.pdf.php on line 1419

Warning: fwrite() expects parameter 1 to be resource, boolean given in [path]/microcart/pdf/class.pdf.php on line 1420

Warning: fclose() expects parameter 1 to be resource, boolean given in [path]/microcart/pdf/class.pdf.php on line 1421

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1937

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1938

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5317) in [path]/microcart/pdf/class.pdf.php on line 1939

Also I can translate the hole thing to Romanian if you provide me the lang file.

Please chmod these folders

CMOD 777 the directories:
  • microcart
and all folders within this folder.

iwaa 01-14-2011 07:35 AM

Thanks,

After chmod-ing everything from the users side seems to work. Unfortunatly I still have the issue from the admincp.

I even tried adding a new invoice, but unfortunatly the issue persists.

Lomak 01-14-2011 10:16 AM

got another mail from paypal - you had any luck?

Code:

Hello Lomak,

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

http://mysite.com/cart_gateway.php?method=paypal

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.

Thank you for your prompt attention to this issue.


Thanks,

PayPal

and this SQL error still persist.. (as I updated to the latest version to test)

Code:

Invalid SQL:
UPDATE microcart_usercoupon SET valid=0 WHERE userid=;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number  : 1064
Request Date  : Wednesday, January 14th 2011 @ 10:28:43 AM
Error Date    : Wednesday, January 14th 2011 @ 10:28:44 AM
Script        : http://mysite.com/cart_gateway.php?method=paypal
Referrer      :
IP Address    : 66.211.170.66
Username      :
Classname    : vB_Database
MySQL Version :

I also cannot now View invoices in AdminCP (But Can edit)

Just to be clear..

all people must be registered and logged in to access the store.
required Customer data is turned on.
We do not have any active coupons.

All help is very much appreciated.

Regards

Raffaele 01-14-2011 11:42 AM

Quote:

Originally Posted by micheal332001 (Post 2148499)
Your versy welcome as i dont want this to be wrong in any way.
I want a quality product for others to use and not have problems with.

We are here to help you to archive your goal:up:

I have replyed to your PM and had alook at your site,
but i cannot make this happen in any way.

I was wondering if this is a caching issue:confused:

The cart or cart block will only show products you have added to the cart and will not show anyone elses orders.

I will uninstall everything and try again maybe it will fix the problem than.:eek:

Yes if i have alled a product to the cart it will show there till i delete the product from my cart as this info is stored within the database.
Even if you logout and then log back in it will still be there.

I think this is a great idea... maybe in your next version you could create an empty cart button...just an idea.

Here are some things for the future that I would like to see in this cart on/off switch in the
General Option... License, Downloads and Stock Levels as I don't use it. But leave it in the Individual Product. :erm:

Thank you again for your help.:)
Raffaele

micheal332001 01-14-2011 06:18 PM

Quote:

Originally Posted by Lomak (Post 2148873)
got another mail from paypal - you had any luck?

Code:

Hello Lomak,

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

http://mysite.com/cart_gateway.php?method=paypal

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.

The cart_gateway.php file is the only file that needs to be uploaded if you already have verion 1.1.4 installed.

Thank you for your prompt attention to this issue.


Thanks,

PayPal

and this SQL error still persist.. (as I updated to the latest version to test)

Code:

Invalid SQL:
UPDATE microcart_usercoupon SET valid=0 WHERE userid=;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number  : 1064
Request Date  : Wednesday, January 14th 2011 @ 10:28:43 AM
Error Date    : Wednesday, January 14th 2011 @ 10:28:44 AM
Script        : http://mysite.com/cart_gateway.php?method=paypal
Referrer      :
IP Address    : 66.211.170.66
Username      :
Classname    : vB_Database
MySQL Version :

I also cannot now View invoices in AdminCP (But Can edit)

Just to be clear..

all people must be registered and logged in to access the store.
required Customer data is turned on.
We do not have any active coupons.

All help is very much appreciated.

Regards

Have re-uploaded the files for this with a small fix to the cart_gateway.php file.

Please try this and let me know if that error have gone for you.

Lomak 01-14-2011 08:23 PM

Quote:

Originally Posted by micheal332001 (Post 2149097)
Have re-uploaded the files for this with a small fix to the cart_gateway.php file.

Please try this and let me know if that error have gone for you.

Tried it. I uploaded the one file: cart_gateway.php

I now do not get the SQL error. But the invoices are still not getting updated.. it says 'Unpaid'

I also cannot go in to the invoices (Via AdminCP) to see what 'options' the customer chose. Therefore I cannot ship any goods.

Thanks in advance

micheal332001 01-15-2011 09:44 AM

Quote:

Originally Posted by Lomak (Post 2148873)
got another mail from paypal - you had any luck?

Code:

Hello Lomak,

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

http://mysite.com/cart_gateway.php?method=paypal

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.

Thank you for your prompt attention to this issue.


Thanks,

PayPal

and this SQL error still persist.. (as I updated to the latest version to test)

Code:

Invalid SQL:
UPDATE microcart_usercoupon SET valid=0 WHERE userid=;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number  : 1064
Request Date  : Wednesday, January 14th 2011 @ 10:28:43 AM
Error Date    : Wednesday, January 14th 2011 @ 10:28:44 AM
Script        : http://mysite.com/cart_gateway.php?method=paypal
Referrer      :
IP Address    : 66.211.170.66
Username      :
Classname    : vB_Database
MySQL Version :

I also cannot now View invoices in AdminCP (But Can edit)

Just to be clear..

all people must be registered and logged in to access the store.
required Customer data is turned on.
We do not have any active coupons.

All help is very much appreciated.

Regards

Quote:

Originally Posted by Lomak (Post 2149144)
Tried it. I uploaded the one file: cart_gateway.php

I now do not get the SQL error. But the invoices are still not getting updated.. it says 'Unpaid'

I also cannot go in to the invoices (Via AdminCP) to see what 'options' the customer chose. Therefore I cannot ship any goods.

Thanks in advance

Hi there m8

Im trying to sort out your problem but will need your help to do this.

open the cart_gateway.php file and find this.

PHP Code:

$tax doubleval($_REQUEST['tax']);

    
$query[] = 'cmd=_notify-validate';
    foreach(
$_POST AS $key => $val) {
        if(!empty(
$val))
            
$query[] = $key '=' urlencode ($val);
    }
    
$query implode('&'$query); 

Replace it with this.

PHP Code:

$tax doubleval($_REQUEST['tax']);
      
$text '['.date('m/d/Y g:i A').'] - '

      
$text .= "IPN POST Vars from Paypal:\n";
    
$query[] = 'cmd=_notify-validate';
    foreach(
$_POST AS $key => $val) {
        
$text .= "$key=$val, \n";
        if(!empty(
$val))
            
$query[] = $key '=' urlencode ($val);
    }
      
$text .= "\nIPN Response from Paypal Server:\n ";
    
$fp=fopen('microcart_paypal_ipn_log.txt','a');
      
fwrite($fpstrtolower($text) . "\n\n"); 

      
fclose($fp);  // close file
      
    
$query implode('&'$query); 

Then put it back to the way it was i just need you to do this so that i can see the reply from paypal once an order has been passed back.

PM me with the results as this will show info you dont want to be seen by enyone.

Also remove the file microcart_paypal_ipn_log.txt when done.

Thanks m8

Lomak 01-15-2011 10:58 AM

done that ...where are the results?

where is microcart_paypal_ipn_log.txt meant to be written to? as I cannot find it.

Smiler2009 01-15-2011 11:00 AM

I'm at the latest revision of MicroCart. Everything seems to work except I cannot view users invoices from the AdminCP.

Any ideas?

Lomak 01-15-2011 11:13 AM

Quote:

Originally Posted by Smiler2009 (Post 2149411)
I'm at the latest revision of MicroCart. Everything seems to work except I cannot view users invoices from the AdminCP.

Any ideas?

if you read the thread .. this has already been logged. posts 63 & 66 for example

Smiler2009 01-15-2011 11:15 AM

Quote:

Originally Posted by Lomak (Post 2149414)
if you read the thread .. this has already been logged

Sorry, it's getting a bit confusing with the two threads. Thought it might have been fixed.

Regards, Jeff.

EDIT: Lomak, FWIW, I've just done some more live testing and I'm seeing the same as you, no email from the shop, and although Paypal redirects me after successful payment I end up back at the storefront.

Lomak 01-15-2011 11:51 AM

Quote:

Originally Posted by Smiler2009 (Post 2149415)
Lomak, FWIW, I've just done some more live testing and I'm seeing the same as you, no email from the shop, and although Paypal redirects me after successful payment I end up back at the storefront.

I think you are meant to be redirected to the storefront.. not sure..
Do your invoices in the admincp say 'unpaid' ?

micheal332001 01-15-2011 02:27 PM

Quote:

Originally Posted by Lomak (Post 2149408)
done that ...where are the results?

where is microcart_paypal_ipn_log.txt meant to be written to? as I cannot find it.

this file will be in your forums root folder.

Lomak 01-15-2011 02:39 PM

Quote:

Originally Posted by micheal332001 (Post 2149485)
this file will be in your forums root folder.

its not there...

micheal332001 01-15-2011 04:12 PM

Quote:

Originally Posted by Lomak (Post 2149493)
its not there...


did you replace the code i posted.

Lomak 01-15-2011 04:18 PM

yes.. i did... maybe you could create a file..
(just to make sure no user error) :erm:
then after ill just upload the original

micheal332001 01-15-2011 04:26 PM

1 Attachment(s)
Quote:

Originally Posted by Lomak (Post 2149408)
done that ...where are the results?

where is microcart_paypal_ipn_log.txt meant to be written to? as I cannot find it.

Hi there m8

Here is the cart_gateway.php file with the file edits in place please try this out.

This file is for Lomak to test the paypal reply to make sure its working only.

If you get a text file within your forum root folder called microcart_paypal_ipn_log.txt
please PM me with the content of this file Lomak

thankyou.

Lomak 01-15-2011 04:31 PM

uploaded it..

no .txt file in the root (same dir as cart.php?)

though after i purchase something via paypal...

micheal332001 01-15-2011 04:38 PM

Quote:

Originally Posted by Lomak (Post 2149565)
uploaded it..

no .txt file in the root (same dir as cart.php?)

though after i purchase something via paypal...

Are you using live paypal or test paypal.

It can take alittle time to get that txt file as paypal will send to the cart_gateway.php file when its ready to.

Lomak 01-15-2011 04:46 PM

Live Paypal..

still nothing... been over 15 mins..


All times are GMT. The time now is 09:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02117 seconds
  • Memory Usage 1,889KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (2)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete