Sunday, August 26, 2012

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

That's too bad, I was enjoying you replying to yourself as you gradually worked through the problem. :)

Remember, in Cake 2 the file names need to match the class names. So if your helper is "HelperfnsHelper", your file needs to be "HelperfnsHelper.php", not "Helperfns.php".

- Jamie

On Sunday, August 26, 2012 4:28:18 PM UTC-7, Daniel wrote:
OK, when following the migration guide I had forgot to add the AppHelper.php file.

Now I get a different error:

Helper class HelperfnsHelper could not be found.

Error: An Internal Error Has Occurred.

Stack Trace

  • CORE\Cake\View\View.php line 861HelperCollection->load(string, array)
            $helpers = HelperCollection::normalizeObjectArray($this->helpers);          foreach ($helpers as $name => $properties) {              list($plugin, $class) = pluginSplit($properties['class']);              $this->{$class} = $this->Helpers->load($properties['class'], $properties['settings']);          }
    'Helperfns'  array()
  • CORE\Cake\View\View.php line 468View->loadHelpers()
                return true;          }          if (!$this->_helpersLoaded) {              $this->loadHelpers();          }
  • CORE\Cake\Controller\Controller.php line 957View->render(null, null)
              $this->autoRender = false;          $this->View = $View;          $this->response->body($View->render($view, $layout));          return $this->response;
    null  null
  • CORE\Cake\Routing\Dispatcher.php line 193Controller->render()
            }            if ($render && $controller->autoRender) {              $response = $controller->render();          } elseif ($response->body() === null) {
  • CORE\Cake\Routing\Dispatcher.php line 161Dispatcher->_invoke(CategoriesController, CakeRequest, CakeResponse)
                ));          }            $response = $this->_invoke($controller, $request, $response);          if (isset($request->params['return'])) {
    object(CategoriesController) {  	components => array(  		[maximum depth reached]  	)  	helpers => array(  		[maximum depth reached]  	)  	name => 'Categories'  	uses => array(  		[maximum depth reached]  	)  	request => object(CakeRequest) {}  	response => object(CakeResponse) {}  	viewPath => 'Categories'  	layoutPath => null  	viewVars => array(  		[maximum depth reached]  	)  	view => 'view'  	layout => 'default'  	autoRender => false  	autoLayout => true  	Components => object(ComponentCollection) {}  	viewClass => 'View'  	View => object(View) {}  	ext => '.ctp'  	plugin => null  	cacheAction => false  	passedArgs => array(  		[maximum depth reached]  	)  	scaffold => false  	methods => array(  		[maximum depth reached]  	)  	modelClass => 'Category'  	modelKey => 'category'  	validationErrors => null  	Session => object(SessionComponent) {}  	Auth => object(AuthComponent) {}  	Utils => object(UtilsComponent) {}  	Category => object(Category) {}  	Inemail => object(Inemail) {}  }  object(CakeRequest) {  	params => array(  		[maximum depth reached]  	)  	data => array([maximum depth reached])  	query => array([maximum depth reached])  	url => false  	base => '/easypeasydating'  	webroot => '/easypeasydating/'  	here => '/easypeasydating/'  }  object(CakeResponse) {  	  }
  • APP\webroot\index.php line 98Dispatcher->dispatch(CakeRequest, CakeResponse) 
 
Helperfns.php is my file and it is in the View/Helper directory.
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate