CKEditor failing in NSBasic IDE - ckeditor

I have followed the directions and done
1. Added the ckeditor.js file into the IDE.
2. Added a textArea named editor
3. Added code CKEDITOR.replace( 'editor1' );
When I run locally I am getting the following error:
ckeditor.js
TypeError: undefined is not an object (evaluating 'c[a].dir=c.rtl[a]?"rtl":"ltr"').
line 248 column 50
On a server I get
ckeditor.js
Uncaught TypeError: Cannot set property 'dir' of undefined.
line 248 column 54
Any ideas on this?
Live sample http://toolfolks.com/Project1/

It worked using this
Instead of dragging into the IDE.
So theres something amiss somewhere.

Related

Vuejs3 + laravel 8 working find locally but in prod vuejs files throwing syntax error and view not render Uncaught SyntaxError: 59

build a project using Vuejs 3 in Laravel 8 went running on Laravel server it works well but went I run npm run prod and deploy it in Cpanel compilation fails with Uncaught SyntaxError: 59 in the console I have remove style and script tags from blade file but still have a problem. please I really need your help
Please check your final html code. May be there you will find a <style>...</style> or <script>...</script> tags... These are the main problem of Uncaught SyntaxError: 59. Yes, it will be ignored in local and development environment but won't in production one...
For example:
<div id="app">
<script>
alert('yes');
</script>
</div>
The main idea to put script and style tags out of the div#app element.

CKEditor Plugin giving errors 'Uncaught TypeError: Cannot read property 'icons' of null'

I am just starting with CKEditor (latest version 4.5.7) using the cdn, wanting to use the plugin:
http://ckeditor.com/addon/uploadimage
I have downloaded and extracted the files of that plugin to 'myplugins/uploadImage/'.
<textarea name="editor1"></textarea>
<script>
CKEDITOR.plugins.addExternal( 'uploadImage', '/myplugins/uploadImage/', 'plugin.js' );
CKEDITOR.replace( 'editor1', {
extraPlugins: 'uploadImage'
} );
</script>
CKEditor works without any plugins, but when I do the above to add the 'uploadImage' plugin, I am getting the following error in chrome console:
'Uncaught TypeError: Cannot read property 'icons' of null'
What is it that I am missing?
The solution for me was based on this answer: ckeditor - Uncaught TypeError: Cannot read property 'icons' of null
I was not doing any image uploading but I was trying to add a plugin that I had not installed. Specifically, it was:
extraPlugins: 'tableresize',
I did not need tableresize so I just removed the tableresize from the extraPlugins line. I reloaded the page and the error was gone.

Fatal error while exporting a CSV file from webpage

I'm trying to export an cvs file but I'm having this error.
Fatal error: Call to undefined method
Mage_Adminhtml_Model_System_Config_Source_Yesno::setAttribute() in
/home/acdistri/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
on line 389
thanks for your quick interest in this question... I found the solution... when I install a extension it create an Attribute, then I uninstall the extension because a JavaScript conflict but the attribute stay there and when I was trying to do the export of the products data base it give me that error. I just delete the attribute and now is working all fine.

Laravel new command error

I did the following commands:
composer global require "laravel/installer=~1.1"
and
set PATH=%PATH%;%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
But when I try to do:
laravel new blog
I get the following error:
Notice: Undefined variable: output in C:\Users\****\AooDara\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 55
Fatal error: Call to a member function writeln() on null in C:\Users\****\AooDara\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 55
Any idea of what went wrong?
Seems like you already have a directory called 'blog' in your application directory. Try creating a laravel app with different name or delete / rename existing 'blog' directory and try again.
for example laravel new helloapp.
However, I think the error showing at the console is a bug of laravel new command. I could see the error at the console when I tried to create a app with same name again from same directory.
The error not exists now. Try creating other application.

set_flashdata() triggers a fatal error in PyroCMS

I moved a Pyrocms site to another server.
Go to index: blank page.
Turn on errors: get this
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Pages::$session
Filename: core/Model.php
Line Number: 50
Fatal error: Call to a member function set_flashdata() on a non-object in /var/www/vhosts/brokentalkers.com/httpdocs/system/pyrocms/modules/modules/models/module_m.php on line 193
If it sheds any light, I made a tar.gz of the contents of the old httpdocs folder, and extracted it in the new httpdocs folder.
I made a duplicate of the database with an identical user, so config/database.php shouldn't need changing.
Any ideas? Thanks in advance.
It seems like $session class is not initializing correctly.
Check for default_ci_sessions table, if you are using sessions for database.
Check if the constructor is loading sessions library.
Check if session is in autoload.php config

Resources