Class 'Public_Controller' not found in codeigniter - codeigniter

Same code is run properly in localhost but on server its show error
An uncaught Exception was encountered
Type: Error
Message: Class 'Public_Controller' not found
Filename: /home/referralearn/public_html/techmaa.org/portal/application/controllers/Auth.php
Line Number: 4
Backtrace:
File: /home/referralearn/public_html/techmaa.org/portal/index.php
Line: 314
Function: require_once
help me to solve this

Related

Why this error is showing while writing code

Compilation errors for PROCEDURE MTR.MTR_DAILY_MAIL_REPORT_PRC1
Error: PLS-00201: identifier 'EXCELFILE.EXCEL_OPEN' must be declared
Line: 54
Text: Excelfile.Excel_Open(Excel_Data);

Unknown Provider error while unit testing in jasmine

I have a module as below in a js file
app.js
angular.module( 'app', [ 'ui.bootstrap', 'routes', 'module2', 'ngAnimate', 'ngSanitize' ] );
If i am to write a unit test case then how should i load the modules in my unit test case??
Is it this way
module('app');
Other way
module('ui.bootstrap');
module('routes');
module('module2');
module('ngAnimate');
module('ngSanitize');
Which is right order or the right way to load the module...As am always getting the below error
Error: [$injector:unpr] Unknown provider: deepakProvider <- deepak
http://errors.angularjs.org/1.4.9/$injector/unpr?p0=deepakProvider%20%3C-%20deepak
at C:/jasmine/InformedEnrollment2/src/webapp/informedenrollment2/webclnt/components/angular/angular.js:68:12
at C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4346:19
at Object.getService [as get] (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4494:39)
at C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4351:45
at Object.getService [as get] (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4494:39)
at Object.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:20:47)
at Object.invoke (C:/jasmine/project/src/webapp/project/webclnt/components/angular/angular.js:4535:17)
at Object.workFn (C:/jasmine/project/node_modules/angular-mocks/angular-mocks.js:3071:20)
Error: Declaration Location
at window.inject.angular.mock.inject (C:/jasmine/project/node_modules/angular-mocks/angular-mocks.js:3033:25)
at Suite.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:19:15)
at C:/jasmine/project/tests/DemoToTheTeam.js:2:1
TypeError: Cannot read property 'multiply' of undefined
at Object.<anonymous> (C:/jasmine/project/tests/DemoToTheTeam.js:26:13)
50.0.2661 (Windows 7 0.0.0): Executed 7 of 7 (1 FAILED) (0.182 secs / 0.064 secs)

Error log in Joomla K2

How to fix this error in error log ( Joomla K2 ) ?
href='function.preg-match'>function.preg-match</a>]: Compilation failed: invalid range in character class at offset 7 in /home/tesstr13/public_html/administrator/components/com_k2/lib/class.upload.php on line 2843
[12-Apr-2014 21:03:21 Europe/Amsterdam] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: invalid range in character class at offset 7 in /home/tesstr13/public_html/administrator/components/com_k2/lib/class.upload.php on line 2870
[12-Apr-2014 21:03:21 Europe/Amsterdam] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: invalid range in character class at offset 7 in /home/tesstr13/public_html/administrator/components/com_k2/lib/class.upload.php on line 2915
Errors such as this several thousands.

Joomla 3.2: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479

My website Joomla 3.2 website was running well recently, when I got this error message and things don't work anymore.
Notice: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479
Notice: Trying to get property of non-object in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Warning: Creating default object from empty value in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Notice: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479
Notice: Trying to get property of non-object in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Warning: Creating default object from empty value in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Error displaying the error page: Could not find template "".

CodeIgniter send Email with outlook.com

I am trying to send emails using CodeIgniter and outlook.com (using XAMPP).
Sending emails using Codeigniter and Gmail worked well, using the following $config specifications:
$config = array(
'mailtype' => 'html'
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '******#gmail.com',
'smtp_pass' => '******'
);
However, applying the following outlook.com config specifications results in error messages (see below):
$config = array(
'mailtype' => 'html'
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.live.com',
'smtp_port' => 587,
'smtp_user' => '******#outlook.com',
'smtp_pass' => '******'
);
Errors:
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Filename: libraries/Email.php
Line Number: 1689
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): Failed to enable crypto
Filename: libraries/Email.php
Line Number: 1689
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): unable to connect to ssl://smtp.live.com:587 (Unknown error)
Filename: libraries/Email.php
Line Number: 1689
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encountered
Severity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
Replacing 'smtp_host' => 'ssl://smtp.live.com' with 'tls://smtp.live.com' results in the following error messages:
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Filename: libraries/Email.php
Line Number: 1689
[etc.]
Question:
Which specifications do I need to apply in order to get Codeigniter Email to work with outlook.com?

Resources