Jump to:

2088 Posts in 1007 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » [SOLVED] Last Ecommerce Trunk: A lot of problems...new error Invalid arguments passed

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1438 Views
  • biapar
    Avatar
    Forum Moderator
    435 Posts

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

    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

  • ChrisS
    Avatar
    Community Member
    5 Posts

    Re: [SOLVED] Last Ecommerce Trunk: A lot of problems...new error Invalid arguments passed Link to this post

    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.

    Attached Files
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: [SOLVED] Last Ecommerce Trunk: A lot of problems...new error Invalid arguments passed Link to this post

    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

  • biapar
    Avatar
    Forum Moderator
    435 Posts
    1438 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.