How to resolve this fatal error

Permalink 1 user found helpful
Warning: require_once(/home/kumar/public_html/amsConcrete/concrete/blocks/concrete/controller.php): failed to open stream: No such file or directory in /home/kumar/public_html/amsConcrete/concrete/core/libraries/loader.php on line 214 Fatal error: require_once(): Failed opening required '/home/kumar/public_html/amsConcrete/concrete/blocks/concrete/controller.php' (include_path='/home/kumar/public_html/amsConcrete/libraries/3rdparty:/home/kumar/public_html/amsConcrete/concrete/libraries/3rdparty:.:/usr/share/php5:/usr/share/php5/PEAR') in /home/kumar/public_html/amsConcrete/concrete/core/libraries/loader.php on line 214

 
planist1 replied on at Permalink Reply
planist1
In looking at this part
public_html/amsConcrete/concrete/blocks/concrete/controller.php


if public_html is webroot and ams is your site folder, then the system is loooking for the concrete controller in the siteroot/concrete/blocks/concrete folder, which probably shouldnt exist. Did you create a block in your root/concrete/blocks folder called concrete?

When did this error occur? After installing an addon?
shankumars replied on at Permalink Reply
hi I add a single page through an external form block..

I create a single page and controller of a page in
amsConcrete/blocks/external_form/forms/sample.php 
amsConcrete/blocks/external_form/forms/controller/sample.php


my coding
<form method="post" action="<?php $this->url('/~kumar/amsConcrete/blocks/external_form/forms/controller/sample', 'test')?>">
Name: <input type="text" name="name" />
  Age: <input type="text" name="age" />
  <input type="submit" />


controller
class SampleExternalFormBlockController extends BlockController {   public function test() {
      echo 'i am working';
   }
}


i did this only .... getting the error... how to solve this and my form also not work i already post in the form sad to say nobody response the following post....

http://www.concrete5.org/community/forums/customizing_c5/the-extern...
planist1 replied on at Permalink Reply
planist1
Take a look at this post that walks you through the external forms ... I think you might find your answer there.

http://www.concrete5.org/community/forums/chat/external_forms_file_...

I think your issue will be in your form action. Might need to change it back to
<form method="post" action="<?php echo $this->action('test_search')?>">


Of course the 'test_search' correlates to what's in the controller.
GreyhorseDesign replied on at Permalink Reply
GreyhorseDesign
Try this for the controller

<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
class SampleExternalFormBlockController extends BlockController { 
  public function test() {
      echo 'i am working';
   }
}
shankumars replied on at Permalink Reply
Hi thanks @planist1 @Greyhorse... its working after i add the 'action' in controller method

public function action_test() {
          echo 'i am working';
      }


thanks your suggestion...



Kumar