Author Topic: Fatal error: Class 'AController' not found  (Read 2964 times)

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Fatal error: Class 'AController' not found
« 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?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Fatal error: Class 'AController' not found
« Reply #1 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: Fatal error: Class 'AController' not found
« Reply #2 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

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: Fatal error: Class 'AController' not found
« Reply #3 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?

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: Fatal error: Class 'AController' not found
« Reply #4 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?

 

Powered by SMFPacks Social Login Mod