bhaveshsoni / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

/messages/messages generating include(YumActiveRecord.php) error #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to index.php/messages/messages or index.php/messages/

What is the expected output? What do you see instead?
1. Should see list of messages.

Instead this is being outputted:
PHP warning

include(YumActiveRecord.php) [<a href='function.include'>function.include</a>]: 
failed to open stream: No such file or directory

/Applications/MAMP/htdocs/c/framework/YiiBase.php(418)

406                 {
407                     foreach(self::$_includePaths as $path)
408                     {
409                         
$classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
410                         if(is_file($classFile))
411                         {
412                             include($classFile);
413                             break;
414                         }
415                     }
416                 }
417                 else
418                     include($className.'.php');
419             }
420             else  // class name with namespace in PHP 5.3
421             {
422                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
423                 if(($path=self::getPathOfAlias($namespace))!==false)
424                     include($path.'.php');
425                 else
426                     return false;
427             }
428             return class_exists($className,false) || 
interface_exists($className,false);
429         }
430         return true;
Stack Trace
#0  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(418): YiiBase::autoload()
#1  
 /Applications/MAMP/htdocs/c/framework/YiiBase.php(0): YiiBase::autoload("YumActiveRecord")
#2  
–  /Applications/MAMP/htdocs/c/framework/YiiBase.php(10): 
spl_autoload_call("YumActiveRecord")
05  * Management module
06  *
07  */
08 
09 class YumMessage extends YumActiveRecord
10 {
11     const MSG_NONE = 'None';
12     const MSG_PLAIN = 'Plain';
13     const MSG_DIALOG = 'Dialog';
14 
15     // set $omit_mail to true to avoid e-mail notification of the 
#3  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(418): 
include("/Applications/MAMP/htdocs/c/c/protected/modules/messages/models/...")
#4  
 /Applications/MAMP/htdocs/c/framework/YiiBase.php(0): YiiBase::autoload("YumMessage")
#5  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(208): 
spl_autoload_call("YumMessage")
#6  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(283): 
YiiBase::createComponent("messages.MessagesModule", "messages", null, array())
#7  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(331): 
CModule->getModule("messages")
#8  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(270): 
CWebApplication->createController("messages")
#9  
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(135): 
CWebApplication->runController("messages")
#10 
+  /Applications/MAMP/htdocs/c/framework/YiiBase.php(162): 
CWebApplication->processRequest()
#11 
–  /Applications/MAMP/htdocs/c/framework/YiiBase.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2012-02-28 17:35:25 Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 
PHP/5.3.6 Yii Framework/1.1.10-dev

What version of the product are you using? On what operating system?
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 Yii 
Framework/1.1.10-dev

Please provide any additional information below.

Original issue reported on code.google.com by n...@nickloui.com on 29 Feb 2012 at 1:36

GoogleCodeExporter commented 8 years ago
I had the same problem, my solution was to open the 
modules/message/models/YumMessage.php file and add this lines on the beginning 
(line 8):

Yii::import('application.modules.user.models.YumActiveRecord');
Yii::import('application.modules.user.models.YumHelper');
Yii::import('application.modules.user.models.Yum');

Original comment by olive...@gmail.com on 19 May 2012 at 7:52