Page 1 of 2
Xinha 0.96.1 object error
Posted: Sun Feb 13, 2011 9:27 pm
by jschulenburg
Hi,
I'm getting an error when running Xinha 0.96.1 on line 3700: plugin is not a constructor? The XinhaCore.js file is found, nut a'm experiencing some sort of issue here??
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 10:00 am
by Timbalu
Hi
Is this the version delivered with Serendipity 1.5.5 ?
or did you change something else in the release files ?
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 10:31 am
by jschulenburg
Yes, i'm using 1.5.5 and i'm following these steps:
1. downloaded Xinha with Spartacus
2. downloaded the latest Xinha version from the site
http://xinha.webfactional.com/ (version 0.96.1)
3. unpacked the downloaded zip file and placed the files in plugins/serendipity_event_xinha/xinha
4. configured xinha to use /plugins/serendipity_event_xinha/xinha/
When starting a new document i don't see the Xinha editor but the standard s9y input screen. When switching to the Firefox error screen (i'm running Firefox 4.0 beta 11, so i use Ctrl-Shft-J) i see the error.
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 10:57 am
by Timbalu
I always thought Xinha being the default Serendipity WYSIWYG Editor, no need to install via Spartacus, Plugins etc, residing in the /htmlarea folder.
I am not experienced at all with it, since I have never used it before, but if I turn on "Use WYSIWYG-Editor" in the Serendipity config, I can use it without any further installing etc.
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 11:36 am
by jschulenburg
If i download de plugin (first delete the plugin, delete the plugin directory and add it through spartacus) it tells me to download and unzip it.. So i do that by default
I'll try your solution. When you choose Xinha, do you see the text and what path do you choose (see screenshot)?
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 12:06 pm
by Timbalu
I never installed Xinha by plugin.
Its just part of the serendipity release and lives in htmlarea.
You can turn it on in your personal serendipity setting: use the graphic wysiwyg editor option.
Thats all.
The plugin, I assume was only used years ago, when another html editor was the default standard.
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 12:25 pm
by jschulenburg
Tried that too, and when i load the reference.html or one of the others in the example directory i see the editor... But when starting a new article the html box doesn't show the Xinha editor
Any other suggestion?
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 12:30 pm
by jschulenburg
I'll now get this error.
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 12:39 pm
by Timbalu
Hmmm, did you allow JS in Browser and Config?
Did you wait ~ 2 seconds to the editor to appear when opening a new entry?
Sounds like you messed up something with the plugin install/uninstall
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 12:42 pm
by jschulenburg
Seems to me too. On i more recent site it did work, so i'll have to reconfigure the site again

Thankz, i will post a status update soon.
Update 1: installed a new s9y directory, used same database, no improvement
Update 2: when going to a subdir the Xinha works, when going to the domain it doesn't work:
-
http://ip-numer/domain, with paths correctly filled : Ok
-
http://domain/, with paths correctly filled : faillure
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 2:29 pm
by garvinhicking
Hi!
You definitely do not need the xinha plugin if you use s9y > 1.5.
Please disable/uninstall the xinha plugin. After that, make sure that you enabled "Use WYSIWYG" in your personal preferences.
Once you have that, please check with Firebug or something similar for firefox to load the blog entry creating screen, and see if it tries to load the Xinha javascript files. This should really work by default. Things that might disturb xinha: If you use
http://localhost/ for your blog, or if you have javascript disabled...
HTH,
Garvin
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 3:05 pm
by Timbalu
jschulenburg wrote:Update 1: installed a new s9y directory, used same database, no improvement

I think the database still contains some odds of you plugin tries.
Maybe you have to go at least trough the serendipity_config table to filter them out.
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 3:10 pm
by Timbalu
Hi Garvin
garvinhicking wrote:You definitely do not need the xinha plugin if you use s9y > 1.5.
By the way, is it possible to declare Plugins not installable in surroundings beyond a specified serendipity version?
In this case this would defintely make sense to have.
Ian
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 3:26 pm
by garvinhicking
Hi Timbalu!
I'd like to not prevent installation of the plugin. In some scenarios, the plugin version might still be wanted - for example for customization or specific xinha plugins that differ form what s9y offers internally.
Also, a good note about the re-installation! If you install s9y into the same database, the current settings will be preserverd! For a complete reinstallation, one always needs to either pick a different dbPrefix, or erase the tables through phpMyAdmin or so before reinstalling.
Regards,
Garvin
Re: Xinha 0.96.1 object error
Posted: Mon Feb 14, 2011 3:59 pm
by Timbalu
garvinhicking wrote:I'd like to not prevent installation of the plugin. In some scenarios, the plugin version might still be wanted - for example for customization or specific xinha plugins that differ form what s9y offers internally.
Ok, accepted.
Ian