tasfe / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

Fatal error: Cannot access private property DevelopmentAdmin::$allowed_actions in C:\wamp\www\ecommerce\_config.php on line 16 #523

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
e-commerce version: 3.1 25.03.2013

SilverStripe version: 3.1 from github 
https://github.com/silverstripe/sapphire/tree/3.1 (25.03.2013)

http://127.0.0.1/dev/build?flush=all

Fatal error: Cannot access private property DevelopmentAdmin::$allowed_actions 
in C:\wamp\www\ecommerce\_config.php on line 16

One question, for when you have planned the version for SS3 of the ECommerce 
modules?

Regards,
Jose A.

Original issue reported on code.google.com by supp...@sendasoft.com on 25 Mar 2013 at 4:10

GoogleCodeExporter commented 9 years ago
With the latest version of ECommerce 3.1 (15/04/2013) still not working:

If click 'Shop Settings' menu options in CMS:
Fatal error: Cannot access property 
ModelAdminEcommerceBaseClass::$managed_models in 
C:\wamp\www\ecommerce\code\cms\ModelAdminEcommerceBaseClass.php on line 22

You should check this problem with the latest version of SilverStripe:
https://github.com/silverstripe/silverstripe-cms/tree/3.1
https://github.com/silverstripe/sapphire/tree/3.1

Thanks Nicolaas,
Regards,
Jose A.

Original comment by supp...@sendasoft.com on 15 Apr 2013 at 6:29

GoogleCodeExporter commented 9 years ago
With the latest version of ECommerce 3.1 (22/04/2013) still not working:

http://127.0.0.1/dev/build?flush=all

( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Cannot access private property 
DevelopmentAdmin::$allowed_actions in C:\wamp\www\ecommerce\_config.php on line 
16

You should check this problem with the latest version of SilverStripe:
https://github.com/silverstripe/silverstripe-cms/tree/3.1
https://github.com/silverstripe/sapphire/tree/3.1

Thanks Nicolaas,
Regards,
Jose A.

Original comment by supp...@sendasoft.com on 22 Apr 2013 at 4:04

GoogleCodeExporter commented 9 years ago
With the latest version of ECommerce 3.1 (23/04/2013) still not working. :(

Original comment by supp...@sendasoft.com on 23 Apr 2013 at 1:31

GoogleCodeExporter commented 9 years ago
Hi Nicolaas,

I think this problem can be solved as follows:

class EcommerceDevelopmentAdminDecorator extends Extension{

    static $allowed_actions = array(
        'ecommerce'
    );

    /**
     * handles ecommerce request or provide options to run request in the form of HTML output.
     * @param SS_HTTPRequest
     * @return HTML
     **/

    function ecommerce(SS_HTTPRequest $request) {
        return EcommerceDatabaseAdmin::create();
    }

}

Regards,
Jose A.

Original comment by supp...@sendasoft.com on 17 May 2013 at 7:22

GoogleCodeExporter commented 9 years ago
I think this is working now, can you confirm?

Original comment by nfranc...@gmail.com on 20 Aug 2013 at 6:38