TinyPortal

Development => Support => Topic started by: Bec on March 07, 2009, 01:29:53 AM

Title: Articles not saving
Post by: Bec on March 07, 2009, 01:29:53 AM
Hi Everyone,

I just upgraded to TP v1.0 beta3 from 0.983 - smf 1.1.8, just trying to edit my articles as they are currently coming up "The article isn't active, hasn't been approved yet, or simply does not exist. " made my changes, click save but its not doing anything.... the article is also showing as being active when i try to edit it but still not showing.. any ideas?

Thanks  :)
Title: Re: Articles not saving
Post by: fangweile on March 07, 2009, 01:37:39 AM
Articles must be in the category to be able to appear or active.
Title: Re: Articles not saving
Post by: Bec on March 07, 2009, 01:48:38 AM
im kind of gathering that but i had problems with this after upgrading Missing articles after upgrading (http://www.tinyportal.net/index.php/topic,28684.msg228608.html#msg228608)

the articles had to be put in category 0 for them to show in tp but now I cannot edit them..... can someone please advise on a solution.
Title: Re: Articles not saving
Post by: ZarPrime on March 07, 2009, 03:35:00 AM
Bec,

Have you created any categories since I helped you in that other topic?  the issue on that one has been placed in the bugtracker for Bloc to look at, but he hasn't looked at it yet.

If you don't yet have any categories, create a category and try to place a couple of your articles there and see if you can edit them.  Come back here and let us know what you find out.

ZarPrime
Title: Re: Articles not saving
Post by: Bec on March 07, 2009, 04:04:09 AM
ZarPrime,

I have a few articles that have a form script (html) inserted from www.emailmeform.com these ones will not let me save, and also are not showing the intro text box as well, so maybe the code from the form is messing with it and not allowing it to load properly (only difference between it and the normal articles)

The other ones that don't have this form script are loading properly and do allow me to save into the new category, but once saved it reloads the page the contents are gone. Click on the preview and it has deleted the contents of the article. Exited the article and went back in and the contents have been deleted.

I'm thinking it might just be easier for me to recreate the articles.

Thanks for following the other up as well :)
Title: Re: Articles not saving
Post by: Bec on March 07, 2009, 04:12:57 AM
Ok something interesting, I just created a new article with html, saved it as a html article, once saved the contents vanished. Did a preview and it was an empty document.

So I put some normal text in and also tried some more html, after saving it ended up showing the normal text but the html was gone...


** Just did another one with html without clicking the html icon or hide html just pasted the info into the document and it saved and is showing correctly... im pretty sure im not doing anything wrong given that its pretty much the same way ive always done everything..... but if I am I would love to know! you can see the preview of this one here (http://www.bridezunited.com.au/index.php/page,130/tpreview.html)

Click on the html icon to edit it and the contents just disappeared again...
Title: Re: Articles not saving
Post by: fangweile on March 07, 2009, 05:21:09 AM
there are bugs in the current editor, try disabling wysiwyg editor and paste ur code there.
Title: Re: Articles not saving
Post by: G6Cad on March 07, 2009, 06:50:14 AM
Quote from: fangweile on March 07, 2009, 05:21:09 AM
there are bugs in the current editor, try disabling wysiwyg editor and paste ur code there.

Correct, several bug reports about this now in the bugtracker.....
Title: Re: Articles not saving
Post by: IchBin on March 07, 2009, 07:01:29 AM
one thing you can do is save your HTML code in a phpbox type block. Then change the block type to HTML/javascript. That will save the code properly until you edit it again. :)
Title: Re: Articles not saving
Post by: mnichols7 on March 07, 2009, 10:54:48 AM
Yes, I ran into the same problem and worked out the same solution.
Title: Re: Articles not saving
Post by: Bec on March 07, 2009, 02:35:32 PM
Thank you for the advice everyone, I will update this post once I have had a chance to try it out! :)
Title: Re: Articles not saving
Post by: Bec on March 15, 2009, 01:18:38 PM
I have had a chance to play around with this again, I came to the decision that I'm just going to redo all of my articles as most of them have the html form code from www.emailmeform.com in them. 

I disabled my wysiwyg editor, have tried making a new article (has been saved in a category) i can paste the form code and it allows me to save but when it goes back into the screen and I try to make changes to the look (options at the bottom that appear after the first initial save) it wont allow me to save again. I have taken a screenshot of it so you can see what I am getting, the form code has a captcha image at the bottom and this always appear outside of the text box.....

Part of me is wishing I didnt upgrade, articles are a huge part of my site and its driving me batty!!
Title: Re: Articles not saving
Post by: Renegd98 on March 15, 2009, 02:37:19 PM
Bec have you read this post and replaced the file provided by Bloc?

http://www.tinyportal.net/index.php/topic,28788.0.html

Try this approach as it fixes the editor. You should then be able to turn your WYSIWYG editor back on.
Title: Re: Articles not saving
Post by: Bec on March 15, 2009, 03:02:53 PM
Thank you! Missed that post. Seems to be working ok now, stuffs up my code a bit, by removing some of the form fields..... could this be something in tp causing the problem cause everything appears ok until after it is saved... the more you save the article the more of the code disappears

http://www.bridezunited.com.au/index.php/page,140 (bottom of page)

and this is how it should look

http://www.emailmeform.com/contact_webmaster_fid-251041.html

I have never had a problem with these forms until i upgraded tp.

Thanks for your help!!
Title: Re: Articles not saving
Post by: ZarPrime on March 15, 2009, 05:26:55 PM
The errors with <textarea> tags not working correctly has been a long standing problem.  When you are using textarea in php blocks or articles, there is a fix posted in this bug report ---> http://www.tinyportal.net/index.php/topic,24326.0.html

However, I can't find any fix for html articles and blocks.  Textarea tags was supposed to be fixed in the new editor and for TP beta 4, which is not yet available.  However, the link that Renegd gave you in the previous post is supposed to have fixed several things with the editor for users of TP Beta 3.  Whether it is working correctly for html articles and blocks is something I don't know, and if it isn't then Bloc may have to have another look at this.

I will post a link to this topic so Bloc can have a look at it.

ZarPrime
Title: Re: Articles not saving
Post by: Bec on March 16, 2009, 12:52:29 AM
Based on my experience I would say that fix Renegd gave me the link to has not fixed the html issue. Thanks again I look forward to another update!

Cheers!!
Title: Re: Articles not saving
Post by: ZarPrime on March 16, 2009, 01:09:33 AM
Bec,

Did you download the whizzywig.zip file attached to Bloc's first post in that topic ---> http://www.tinyportal.net/index.php/topic,28788.msg229572.html#msg229572

The file contained in that zip should fix the problems with the editor.  In his post, Bloc also mentions where the file needs to be copied to.

ZarPrime
Title: Re: Articles not saving
Post by: Bec on March 16, 2009, 01:20:55 AM
Hi,

Yes I did upload that file, just editing my old articles now using the editor and everything is working fine. It is only when I have the html form code that everything seems to stuff up, so must be something conflicting with the code.

BTW here is one of the codes used for the form just so you can see what I'm using. Like I said earlier in this post I never had a problem with these forms working before, it has only been since I upgraded.

<form method="post" action="http://www.emailmeform.com/fid.php?formid=251017" enctype="multipart/form-data" accept-charset="UTF-8">
<table cellpadding="2" cellspacing="0" border="0" bgcolor="#FCE9FC">
<tr>
<td>
<font face="Verdana" size="2" color="#000000">If you have any questions or comments about anything on the Bridez United website please fill out the form below, we will respond to you within 24 hours. </font>
<div style="" id="mainmsg"> </div>

</td>
</tr>
</table>

<br>

<table cellpadding="2" cellspacing="0" border="0" bgcolor="#FCE9FC">

<tr valign="top">
<td nowrap><font face="Verdana" size="2" color="#000000">Your Name</font></td>
<td>
<input type="text" name="FieldData0" value="" maxlength="100" size="30"> </td>
</tr>     

<tr valign="top">
<td nowrap><font face="Verdana" size="2" color="#000000">Your Email Address</font></td>
<td>
<input type="text" name="FieldData1" value="" maxlength="100" size="30"> </td>
</tr>     

<tr valign="top">
<td nowrap><font face="Verdana" size="2" color="#000000">Subject</font></td>
<td>
<input type="text" name="FieldData2" value="" maxlength="100" size="30"> </td>
</tr>     

<tr valign="top">
<td nowrap><font face="Verdana" size="2" color="#000000">Message</font></td>
<td>
<textarea name="FieldData3" cols="60" rows="10"></textarea><br> <div style="position: absolute; left: 1800px; top: 20px;"><a href="http://www.emailmeform.com">php forms</a></div></td>
</tr>     

<tr>
<td colspan="2">
<table cellpadding=5 cellspacing=0 bgcolor="#FCE9FC" width="100%">
<tr bgcolor="#FCE9FC">
<td colspan="2"><font color="#000000" face="Verdana" size="2"><b>Image Verification</b></font></td>
</tr>
<tr>
<td style="padding: 2px;" width="10"><img src="http://www.emailmeform.com/turing.php" id="captcha"></td>
<td valign="top"><font color="#000000">Please enter the text from the image</font>   <br><input type="text" name="Turing" value="" maxlength="100" size="10">
[ <a href="#" onclick=" document.getElementById('captcha').src = document.getElementById('captcha').src + '?' + (new Date()).getMilliseconds()">Refresh Image</a> ] [ <a href="http://www.emailmeform.com/?v=turing&pt=popup" onClick="window.open('http://www.emailmeform.com/?v=turing&pt=popup','_blank','width=400, height=300, left=' + (screen.width-450) + ', top=100');return false;">What's This?</a> ]
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
<td align="right">
<input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none;">
<input type="submit" class="btn" value="Send" name="Submit"></td>
</tr>
</table>                     

</form>

Title: Re: Articles not saving
Post by: bloc on March 16, 2009, 09:14:37 AM
It would seem the form code is still interfering with the actual admin screen form. I will try work out how to prevent this.
Title: Re: Articles not saving
Post by: Bec on March 22, 2009, 12:05:11 AM
Thank you Bloc, appreciate you looking into it! Look forward to an update! :)