Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

[SOLVED] Last Ecommerce Trunk: A lot of problems...new error Invalid arguments passed


Go to End


4 Posts   2154 Views

Avatar
biapar

Forum Moderator, 435 Posts

7 June 2010 at 1:53am

Edited: 09/06/2010 7:51am

I downloaded last ecommerce trunk e last payment trunk.

- modules_ecommerce_trunk-r106216.zip ( link on ecommerce wiki page )
- payment-trunk-r105308.tar.gz ( from extrension page )

but I see that there are a lot of problems.
What are more stable version for 2.4?

[Warning] implode() [function.implode]: Invalid arguments passed
GET /PhPSites/ss240/new-productgroup/p5/
Line 365 in C:\xampp\htdocs\ss240\sapphire\core\ViewableData.php

Source
356 * @param bool $forceReturnedObject if TRUE, the value will ALWAYS be casted to an object before being returned,
357 * even if there is no explicit casting information
358 * @param string $cacheName a custom cache name
359 */
360 public function obj($fieldName, $arguments = null, $forceReturnedObject = true, $cache = false, $cacheName = null) {
361 if(isset($_REQUEST['debug_profile'])) {
362 Profiler::mark("obj.$fieldName", "on a $this->class object");
363 }
364
365 if(!$cacheName) $cacheName = $arguments ? $fieldName . implode(',', $arguments) : $fieldName;
366
367 if(!isset($this->objCache[$cacheName])) {
368 if($this->hasMethod($fieldName)) {
369 $value = $arguments ? call_user_func_array(array($this, $fieldName), $arguments) : $this->$fieldName();
370 } else {
371 $value = $this->$fieldName;
Trace
implode(,,subtotal)
Line 365 of ViewableData.php
ViewableData->obj(_subtotal,subtotal,,1,Array)
Line 411 of ViewableData.php
ViewableData->cachedCall(_subtotal,subtotal,Array)
Line 1 of Object.php(850) : runtime-created function
__lambda_func(Order,Array)
Line 714 of Object.php
Object->__call(SubTotal,Array)

Order->SubTotal()
Line 369 of ViewableData.php
ViewableData->obj(SubTotal,,1)
Line 348 of .cacheC..xampp.htdocs.ss240.ecommerce.templates.Layout.Product.ss
include(C:\Windows\Temp\silverstripe-cacheC--xampp-htdocs-ss240\.cacheC..xampp.htdocs.ss240.ecommerce.templates.Layout.Product.ss)
Line 392 of SSViewer.php
SSViewer->process(Product_Controller,Zend_Cache_Frontend_Output)
Line 383 of SSViewer.php
SSViewer->process(Product_Controller)
Line 202 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 134 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 184 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
ModelAsController->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
Director::direct(new-productgroup/p5/)
Line 127 of main.php

Thank you

Avatar
ChrisS

Community Member, 5 Posts

7 June 2010 at 11:07am

Hi biapar.

The ecommerce trunk from https://code.google.com/p/silverstripe-ecommerce is the one you need - it fixes compatability issues with SS2.4 and Payments module.

Have included a zipped version of the source here if you don't have SVN access.

Jedateach: If you are watching this, can we have a zip file on the google-code site as well?

Cheers.

Avatar
biapar

Forum Moderator, 435 Posts

8 June 2010 at 9:49am

Thank you very much. Il try.
May be a good thing , to create at every commit, a zip file to download from google code.
Do I need 0.3v Payment or trunk version from SilverStripe site?

Bye

Avatar
biapar

Forum Moderator, 435 Posts

9 June 2010 at 7:50am

Solved with last ecommerce trunk