Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#217 2007-01-10 18:00:38

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Are you using prefixes on your tables by any chance?

Are you seeing this on new articles or also when saving existing articles? It seems like somehow you are being pushed into the Save step instead of the publish step when you don’t have an ID yet.

Can you look in the source of the write tab for <input type="hidden" name="ID" and see what the value is set to? It should be blank for new articles and have the article id for existing articles.

Last edited by hakjoon (2007-01-10 18:58:44)


Shoving is the answer – pusher robot

Offline

#218 2007-01-10 19:11:54

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hak_tinymce WYSIWYG article editor

no, txp is the only application that writes into the database.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#219 2007-01-10 19:42:11

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

I might have added this after you posted.

Are you seeing this on new articles or also when saving existing articles? It seems like somehow you are being pushed into the Save step instead of the publish step when you don’t have an ID yet.

Can you look in the source of the write tab for <input type="hidden" name="ID" and see what the value is set to? It should be blank for new articles and have the article id for existing articles.

Last edited by hakjoon (2007-01-10 19:42:29)


Shoving is the answer – pusher robot

Offline

#220 2007-01-10 20:29:21

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hak_tinymce WYSIWYG article editor

Are you seeing this on new articles or also when saving existing articles? It seems like somehow you are being pushed into the Save step instead of the publish step when you don’t have an ID yet.

correct, i only worked on (and saved) exiting articles.

Can you look in the source of the write tab for <input type="hidden" name="ID" and see what the value is set to? It should be blank for new articles and have the article id for existing articles.

if you mean the sourcecode of the txp backend “Txp > Sitename > Articletitle”: the value there is 6 for existing articles, for new ones it is empty, nothing in between the apostrophes.

btw: many thanks for your efforts in tracking this thing down, patrick! :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#221 2007-01-10 20:53:31

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

It’s not always 6 right? It should be different for each article (I’m assuming it is different).

This is what I think is occuring to generate the error.

When you save an article it tries to figure out if it’s new or not. I partially does this by checking the name that gets passed with the submit button. A value of “publish” means it’s a new article. When this is the case it happily inserts the article using the next ID in the table. However when the value is “save” it expects an ID to be passed along. At this point it validates that the ID is in fact an integer. This seems to be where it’s bombing because an empty string is not an integer.

However I have no idea how you are ending up with an empty string for the value of ID because you would need to have a <input type="hidden" name="ID" value="" /> tag in your source for that to be the case.

Any chance I could get access to the site to see if I can see what’s happening? I realize this might not be possible, but it can really help.


Shoving is the answer – pusher robot

Offline

#222 2007-01-10 21:11:19

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hak_tinymce WYSIWYG article editor

no, it’s not always the 6, thats right.

Any chance I could get access to the site to see if I can see what’s happening?

i’ll mail you ;)
in the meantime: for my better understanding, would you please inform me, what you mean by “it”? (“When you save an article it tries to figure out…” ) txp or tiny_mce?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#223 2007-01-10 21:21:18

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

That wasn’t the clearest was it :)

By it I meant TXP. tiny_mce only looks at the ID to figure if it should load the editor when you load an article created with textile.


Shoving is the answer – pusher robot

Offline

#224 2007-01-10 22:27:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hak_tinymce WYSIWYG article editor

patrick was so kind to live test on the site i’m working on. and the plug did it’s job fautlessly :))

don’t know, what the reason for the previous failures was.

patrick,
i’m very grateful for your extensive, quick, and engaged help. and for your work on hak_tinymce, too. very big total entire thank you! :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#225 2007-01-27 22:51:44

coopersita
Member
Registered: 2005-09-28
Posts: 68
Website

Re: hak_tinymce WYSIWYG article editor

I love this editor, but I’m having problems with the tineymce plugins.

I made a clone of txpimage, and named it txpimage2. I did this because when people add an image in the excerpt it should just insert the image, but if it’s added to the body, it should add a link to the full size image.

My new plugin works fine, but for some reason, the plugins I set in the initialization calls for body, are also set for excerpt. If I add txpimage2 to the body, it is also set for excerpt… I’ve tried deleting the txpimage from the excerpt all together, but it’s still there. Whatever changes I make to the initialization of plugins in body, are copied into excerpt.

This is the line:

plugins : “searchreplace,txpimage2”,

Could it be a result of my tampering with the plugin, or is it a bug in the hak_tinymce editor?

Thanks

—————————
Some hours later:

Never mind… It’s working now….

Last edited by coopersita (2007-01-28 03:24:40)

Offline

#226 2007-01-27 23:24:29

Psilo
Member
From: Iceland
Registered: 2006-04-27
Posts: 11
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

New 0.6.2 update that fixes an issue if your installation does not define doc_root in config.php. Only needed if you are getting doc_root related warnings.

Well, it seems that the 0.6.3 version incorporates this doc_root again… I wonder why?


Never make the same mistake twice… there are so many… try a new one each day!

Offline

#227 2007-01-29 02:50:51

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Psilo wrote:
Well, it seems that the 0.6.3 version incorporates this doc_root again… I wonder why?

I had a subversion snafu that never actually commited that change back into the repository. I posted 0.6.4 which corrects this again. It also fixes the missing table prefix when Uninstalling. Thanks for catching these.

BTW I have not dissapeared and I am working on a new version. I started a new job this month so I’ve been a little busy with that. I’ve also been trying to figure out this issue that Uli is having because it could potentially point to something very problematic, but a new version with, at the very least, the integrated Linking plugin is coming.

Last edited by hakjoon (2007-01-29 02:51:28)


Shoving is the answer – pusher robot

Offline

#228 2007-01-31 20:25:00

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: hak_tinymce WYSIWYG article editor

Why does my insert image dialog look like this (note the $lang_ text all over the place)?

Offline

Board footer

Powered by FluxBB