Fatal error in sugarCRM view page for custom module - sugarcrm

I am new to sugarCRM, I had created a custom module using module builder. Everything was working fine till yesterday, all of a sudden I get this error when I try to open my module
Call to a member function setup() on a non-object in xxx\xxx\xxx\include\MVC\Controller\ControllerFactory.php on line 78
I tried to search for the solution but couldnt find any .
Can anybody tell me what went wrong ?

Do you have a controller.php file defined for your custom module? If so, I'm guessing the permissions on that file are incorrect.

I got the same error message in my custom module with a custom extende controller.
I named the controller class CustomMyModuleName. But it should be named CustomMyoduleNameController

Related

TYPO3 Hook not found

I am currently trying to write a Hook to add extra fields to a Flexform. Therefore I followed this tutorial: https://docs.typo3.org/typo3cms/extensions/news/DeveloperManual/ExtendNews/ExtendFlexforms/Index.html?fref=gc&dti=250938618364487#extend-flexforms-with-custom-fields
But when I go to a page in the backend that contains an options from a Flexform I get the following Error:
Class 'ID\SearchBarAdditional\Hooks\FlexFormHook' not found.
I register the Hook in the ext_localconf like this:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing'][] = \ID\SearchBarAdditional\Hooks\FlexFormHook::class;
and my Hook-file is here: typo3conf/ext/search_bar_additional/Classes/Hooks
and is initialized that way:
namespace ID\SearchBarAdditional\Hooks;
class FlexFormHook { /* ... */
So in my opinion everything is in the right place and should work, but I do still get the error that TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("ID\SearchBarAdditional\Hooks\FlexFormHook") fails.
Do you guys have any ideas, what could be wrong? Do I have to register the Hook in \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( or something similar (as the posted code is really the only thing I've done)?
This is a typical class loading error. Check that you added your PHP namespaces to composer autoloading and/or ext_emconf.php and make sure your filenames are correctly named according to PSR-4. If in doubt you can inspect the class loading map files generated by composer in vendor/composer (if you use composer for class loading, which you definitely should do).
I found the mistake: My Hook does indeed not get loaded. I tried to 'include' it in the ext_localconf.php and it is working now.
But as this is of course an extremely ugly solution I posted a second question, how to load a hook here: Typo3 8.X - autoload Hook
Thank you for your help!!!

TYPO3: File Upload Error in front using upload_example extension

I have installed upload_example extension in TYPO3 7.6.11. It works very well from admin. However, when i try to submit form with images it throws the error: 1298012500: Required argument "newExample" is not set for Helhum\UploadExample\Controller\ExampleController->create.
I checked every configuration, everything is set. I stuck. I am new in typo3.
Can you help please?
Thank You
You can debug using debugutility inside initializeMethodAction(). I must be called in such case when model argument is not found.
Or as a reference for file uploading you can refer this link. hopefully, it will help you
http://blog.typo3servers.info/show/typo3-extbase-fal-image-upload/

Codeigniter 3 and codeigniter-restserver not working

We are using Codeigniter 3 and codeigniter-restserver in our new project. we have configured all the settings for Codeigniter-restserver.
But we are getting error
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Login::$format
Filename: controllers/REST_Controller.php
Line Number: 728
Login is controller name which is extending REST_Controller.
Please help us with this..
I have the same problem when I load both Format.php and Rest_Controller.php into a controller.
After have a quick glance at Format.php, it appears to be a standalone format conversion helper.
Try to just load Rest_Controller.php and see if your problem goes away.

Smarty With Zend Framework cannot find the index.tpl but clearlu displays other views

For the life of me, I cannot understand this particular case!
I am working on a project on local machine and everything works fine. But after uploading it to a remote server I cam get this error
PHP Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script ''index'/index.tpl' not found in path (/home6/shawndre/application/modules/default/views/scripts/)' in /home6/shawndre/zf/library/Zend/View/Abstract.php:988
This error only appear on the indexController indexAction page.
Im pulling my hair out on this one!
Any help is appreciated!
The error was caused by the way I set the definition for the default controller in my application.ini. I used single quotation ' instead of double quote ".
Changing the value of the default controller to "index" instead of 'index' fixed it. Had me scratching my mustache!

Action Helper by name EntityManger not found

Just started building an app with the zend framework. I've working on a zend server 5.5. When I try to open the first controller I created, I get the following error message:
Application Error
Message: Action Helper by name EntityManager not found
Stack trace:
#0 c:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Controller\Action\HelperBroker.php(293): Zend_Controller_Action_HelperBroker::_loadHelper('EntityManager')
...
My guess is that I'm missing a library, but I'm not sure which one. Anyone know?
Where do you register the Helper?
Do you register the helper in the Boostrap or in the application.ini?
Where is the helper located? Please try to give more information concering that.
Anyways, it looks like you are using a standard setup, so you have to register the /path/to/your/helper with the Action Helper Broker.
For indepth information check the documentation
Check the class name of your helper file. The name must be something like this:
Zend_Controller_Action_Helper_helperfilename
This had worked for me.