Xinha 0.96.1 object error

Creating and modifying plugins.
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Xinha 0.96.1 object error

Post 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??
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post by Timbalu »

Hi

Is this the version delivered with Serendipity 1.5.5 ?
or did you change something else in the release files ?

Ian
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Re: Xinha 0.96.1 object error

Post 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.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Re: Xinha 0.96.1 object error

Post 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)?
Attachments
14-2-2011 11-39-06.jpg
14-2-2011 11-39-06.jpg (87.6 KiB) Viewed 7714 times
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Re: Xinha 0.96.1 object error

Post 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?
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Re: Xinha 0.96.1 object error

Post by jschulenburg »

I'll now get this error.
Attachments
14-2-2011 12-26-45.jpg
14-2-2011 12-26-45.jpg (18.76 KiB) Viewed 7712 times
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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
jschulenburg
Regular
Posts: 31
Joined: Fri Feb 11, 2011 3:08 pm

Re: Xinha 0.96.1 object error

Post 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
Last edited by jschulenburg on Mon Feb 14, 2011 4:20 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Xinha 0.96.1 object error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Xinha 0.96.1 object error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Xinha 0.96.1 object error

Post 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. :idea:

Ian
Post Reply