PDA

View Full Version : Adding PayPal buttons – is it possible or not?


Naco
12-09-2008, 05:32 PM
Hi,

I would like to add PayPal functionality to my Photoblog and after spending some time reading PayPal’s online documentation I am still confused about few facts; I was hoping that somebody here with some programming experience would be able to help.

PayPal suggests that a number of “Add to cart” buttons equal to the number of items to be added to the shopping cart should be created. That confuses me since my website (like most others) does not present a list of products, instead is a classical photo browse type page with LEFT/RIGHT navigation buttons. Since the new photos are uploaded using the admin interface, without the need to create individual HTML pages how can I place individual "Add to cart" HTML button codes on such configuration?

Thanks,
Naco

Dennis
12-09-2008, 05:39 PM
http://www.pixelpost.org/extend/?s=paypal&sort=updated&req=Any

Naco
12-09-2008, 06:17 PM
I knew about that page Dennis but none of the existing solutions seem to work. I didn't try them all but by going to their respective threads I see people complaining about the same issue regardless of the chosen script: even though I made sure is transferred as ASCII not Binary, once the add-on is installed all other existing add-ons disappear. I was suggested by the add-on developer to identify the problem by turning all other ad-ons off while ONLY the PayPal add-on is ON, then turn them ON one-by-one and see which one conflicts with PayPal. I haven't tried it yet but besides the fact that I have a lot of add-ons I don't like to consider trading off another add-on for PayPal especially knowing that it must be one most people often use (since the issue is common to all trying to use it)

Any other suggestions?

Thanks,
Naco

Dennis
12-09-2008, 06:50 PM
Instead of going through the process described by the addon developer try the steps outlined in this thread: http://www.pixelpost.org/forum/showthread.php?t=8764

The first option will probably give you the clue you need.

Naco
12-09-2008, 07:15 PM
Dennis, the suggested actions in the recommended thread don’t bring anything new to this issue. I certainly fall under the first category where the incompatibility is clear and known and once the lastly added, PayPal add-on is removed from within the add-on folder everything turns back to normal. So I identified the add-on causing the fault, which I knew it before, yet, this still does not answer my initial question: how to install PayPal functionality – and make it work?

As I mentioned before the developer’s suggestions don’t quite fit my plan of action.


To summarize:
1. There are 3 possible, available add-ons promising PayPal functionality
2. None of them seem to work since people trying to implement them bumped into the same issue.
3. I could not find a viable solution yet to the existing problem inherited with any of the the proposed add-ons
4. Don’t know whether I could go outside the existing proposed solutions and add “Add to Cart” buttons as suggested by PayPal since I don’t know how to add HTML codes to individual images uploaded with Pixelpost. In other words they suggest adding, say, 200 buttons corresponding to the 200 products you are trying to sell. I don’t have access to the 200 individual HTML pages. As you know my only editable HTML pages are the ones in the template folder(s)

Any further help would be appreciated.

Thanks
Naco

Dennis
12-10-2008, 06:10 AM
Well, providing the offending addon with the corresponding error message (a.k.a. the reason why the addon page doesn't show up) might give me some clue on how to fix it for you.

Without this information there is not much I can do.

Naco
12-10-2008, 06:47 PM
Dennis,

The add-on I was trying to use is the one posted by EcoSee here (http://www.pixelpost.org/extend/addons/paypal-for-pixelpost/). I am clearly not the first or only one having this issue. I was trying to work it out with the author but unfortunately he could not help. There is no error after uploading the add-on, just that all existing add-ons disapear and only the header is visible. Once the add-on is removed everything comes back to normal.

Thanks,
Naco Photography (http://www.nacophotography.com/pixelpost/)

Dennis
12-11-2008, 05:18 AM
Naco, let me make this as clear as I can make it.

When the addonpage disappears there is a 95% chance it is caused by a PHP error. Mostly these errors will cause the processing of PHP files to a grinding hold. Hence, further information is not processed and that is what is causing the addon page to disappear.

To accommodate an easy search for the exact PHP error, including the linenumber and the file in which it resides we have provided an URL switch. This url switch, &errorsall will show the information above.

So, with this said I ask you once again: what is the corresponding error? I know there has to be an error since you state "when I remove the addon all works well". We had some strange cases in which the addonpage mysteriously disappeared, which could not be resolved by removing an addon.

In addition, you might want to check out the code posted by Vernon Trent in this thread: http://www.pixelpost.org/forum/showthread.php?t=3770&highlight=paypal
It describes a simple way to use Javascript to replace each variable in the HTML of the button. That way you will only need one HTML button and Javascript does the rest.

Naco
12-15-2008, 04:37 PM
Dennis,

I just didn’t know about the URL switch or how to look for the errors on pixelpost pages. Furthermore, beside not being able to install the PayPal add-on I also get the “Session save path is empty!!” under General Info tab. Here are all errors showing when invoked “&errorsall”.

I also uploaded the phpinfo.php file as suggested by Austriaca. Would you like me to provide the path to the phpinfo over here?


Thanks,
Naco Photography (http://www.nacophotography.com/pixelpost/)




Notice: Undefined index: pp_user in /home/nac/public_html/pixelpost/admin/index.php on line 147

Notice: Undefined index: x in /home/nac/public_html/pixelpost/admin/index.php on line 156

Notice: Undefined index: x in /home/nac/public_html/pixelpost/admin/index.php on line 182

Notice: Undefined index: x in /home/nac/public_html/pixelpost/admin/index.php on line 218


Notice: Undefined variable: login in /home/nac/public_html/pixelpost/admin/index.php on line 269
ADMINISTRATION FOR
NEW IMAGE IMAGES CATEGORIES COMMENTS OPTIONS GENERAL INFO ADDONS LOGOUT

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/new_image.php on line 6

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/new_image.php on line 6

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/new_image.php on line 6

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/view_addons.php on line 6

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/view_addons.php on line 6

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/admin/view_addons.php on line 6
INSTALLED ADDONS

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/nac/public_html/pixelpost/includes/functions.php on line 813

Warning: fopen(addons/_turing/library/questions.txt) [function.fopen]: failed to open stream: No such file or directory in /home/nac/public_html/pixelpost/addons/_turing/library/turing_library.php on line 33

Warning: fopen(addons/_turing/library/questions.txt) [function.fopen]: failed to open stream: No such file or directory in /home/nac/public_html/pixelpost/addons/_turing/library/turing_library.php on line 57

Notice: Undefined variable: tpl in /home/nac/public_html/pixelpost/addons/_turing/turingtest.php on line 38

Notice: Undefined index: action in /home/nac/public_html/pixelpost/addons/global_comment_settings.php on line 66

Notice: Undefined variable: cdate in /home/nac/public_html/pixelpost/addons/random_thumb.php on line 54

Notice: Undefined variable: image_id in /home/nac/public_html/pixelpost/addons/dm_support.php on line 590

Notice: Undefined variable: image_previous_id in /home/nac/public_html/pixelpost/addons/dm_support.php on line 590

Notice: Undefined variable: image_id in /home/nac/public_html/pixelpost/addons/dm_support.php on line 593

Notice: Undefined variable: image_next_id in /home/nac/public_html/pixelpost/addons/dm_support.php on line 593

Notice: Undefined variable: image_id in /home/nac/public_html/pixelpost/addons/dm_support.php on line 606

Notice: Undefined variable: image_height in /home/nac/public_html/pixelpost/addons/dm_support.php on line 607

Notice: Undefined variable: image_height in /home/nac/public_html/pixelpost/addons/dm_support.php on line 610

Notice: Undefined variable: aThumbs in /home/nac/public_html/pixelpost/addons/dm_support.php on line 400

Notice: Undefined variable: aThumbs in /home/nac/public_html/pixelpost/addons/dm_support.php on line 401

Notice: Undefined variable: aThumbs in /home/nac/public_html/pixelpost/addons/dm_support.php on line 401

Notice: Undefined variable: aThumbs in /home/nac/public_html/pixelpost/addons/dm_support.php on line 413

Warning: implode() [function.implode]: Invalid arguments passed in /home/nac/public_html/pixelpost/addons/dm_support.php on line 413

Notice: Undefined variable: aThumbs in /home/nac/public_html/pixelpost/addons/dm_support.php on line 429

Warning: implode() [function.implode]: Invalid arguments passed in /home/nac/public_html/pixelpost/addons/dm_support.php on line 429

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/nac/public_html/pixelpost/includes/functions.php on line 813

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/addons/advanced_stat.php on line 36

Notice: Undefined index: _SESSION in /home/nac/public_html/pixelpost/addons/advanced_stat.php on line 36

Notice: Undefined variable: somestates in /home/nac/public_html/pixelpost/addons/advanced_stat.php on line 47

Notice: Undefined index: advncstat in /home/nac/public_html/pixelpost/addons/advanced_stat.php on line 65

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 60

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 60

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 182

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 182

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 197

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: default_language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 574

Notice: Undefined variable: PP_supp_lang in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 605

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 607

Notice: Undefined variable: cdate in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 612

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 624

Notice: Undefined variable: cdate in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 628

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 637

Notice: Undefined variable: language_abr in /home/nac/public_html/pixelpost/addons/paged_archive.php on line 667

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/nac/public_html/pixelpost/includes/functions.php on line 813

Parse error: syntax error, unexpected T_VARIABLE in /home/nac/public_html/pixelpost/addons/admin_paypal_cart.php on line 1

Dennis
12-16-2008, 06:47 AM
Parse error: syntax error, unexpected T_VARIABLE in /home/nac/public_html/pixelpost/addons/admin_paypal_cart.php on line 1


There is your error. Please mail the php file.

Naco
12-16-2008, 03:32 PM
Hi Dennis,

1. Is there any way to attach the php file or should I just wrap the text in tags and post it here?

2. Any chance to look into all other errors regarding the "Session save path is empty!!” ? Meanwhile I have changed all my file names, insuring no spaces are present (replaced all spaces for underscore) but that alone didn’t seem to solve it.


Thank,
Naco Photography (http://www.nacophotography.com/pixelpost/)