AbanteCart Community

Shopping Cart Operations => Support => Extension Support => Topic started by: shahiran12395 on June 10, 2019, 02:48:52 AM

Title: Fatal error: Class 'AController' not found
Post by: shahiran12395 on June 10, 2019, 02:48:52 AM
Hi, Im trying to create new controller for my extension to redirect success payment to this controller before getting checkout/success page.

i got this error after i make a payment.

Fatal error: Class 'AController' not found in {path}\extensions\payment_gateway\storefront\controller\responses\extension\rsi_payment_callback.php

how to fix it this issue?
Title: Re: Fatal error: Class 'AController' not found
Post by: abolabo on June 10, 2019, 03:22:56 AM
Hi. You doing something wrong.
Check file public_html/core/init.php
You should find     require_once(DIR_CORE.'engine/controller.php'); there.

check if this file loaded
Title: Re: Fatal error: Class 'AController' not found
Post by: shahiran12395 on June 10, 2019, 03:35:44 AM
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there
Title: Re: Fatal error: Class 'AController' not found
Post by: shahiran12395 on June 10, 2019, 03:36:41 AM
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there

is there anything i need to add in the init.php file?
Title: Re: Fatal error: Class 'AController' not found
Post by: shahiran12395 on June 10, 2019, 03:49:33 AM
i already look at the file you ask for but there is no "require_once(DIR_CORE.'engine/controller.php');" loaded in there

is there anything i need to add in the init.php file?

my bad. my editor not search right result. the file loaded once. then what is the next step?