PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 24, 2022

[FIXED] Yii throwing exception

 January 24, 2022     ckeditor, yii, yii-extensions     No comments   

Issue

An app that seems fine in local throwing me following exception on live:

CException

Alias "application.extensions.TheCKEditor.theCKEditorWidget" is invalid. 
Make sure it points to an existing PHP file and the file is readable. 

Code:

   <?php $this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array(
        'model'=>$model,                # Data-Model (form model)
        'attribute'=>'wordMeaning',         # Attribute in the Data-Model
        'height'=>'400px',
        'width'=>'100%',
        'toolbarSet'=>'Full',          # EXISTING(!) Toolbar (see: ckeditor.js)
        'ckeditor'=>Yii::app()->basePath.'/../assets/ckeditor3.6.5/ckeditor.php',
                                        # Path to ckeditor.php
        'ckBasePath'=>Yii::app()->baseUrl.'/assets/ckeditor3.6.5/',
                                        # Relative Path to the Editor (from Web-Root)
        //'css' => Yii::app()->baseUrl.'/css/index.css',
                                        # Additional Parameters
    ) ); ?>  

Any idea ?


Solution

Check path ./protected/extensions/TheCKEditor/theCKEditorWidget. Also check case of path TheCKEditor



Answered By - Sergey
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing