TinyPortal

Development => Support => Topic started by: dunks on July 28, 2009, 10:42:21 AM

Title: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 10:42:21 AM
Update..... Have new problems now.

When I edit an article it doesnt let me put it back in the same catergory... It asks me which catergory, but only 3 appear in the drop down menu instead of the list of about 10 catergorys.

If I try to make a new block , It will not show up.

I un-installed tp and then tried installing v.0983 , This installed but none of the blocks showed up, so I uninstalled this and re-installed v.1.083, so i'm back to where I was earlier, and unable to edit or create articles into my existing blocks.

I've read the support docs, and I seem to be doing everything as I should.

Am I best to somehow copy all my articles and save them somewhere and then, go into my cpanel and completley remove tp and start again, If this is the case Is this easy to do ? And how do I know which files to remove

Thanks
Title: Can't Select New Category After Editing Article
Post by: ZarPrime on July 28, 2009, 01:54:47 PM
Hi dunks,

First of all, you can't go back to TP 0.98 after having installed TP 1.x because this upgrade makes some major changes to the database that are different to TP versions prior to TP 1.x.  So, was the uninstall of TP 0.983 clean?

Sticking with TP 1.0 beta 4 and being patient is the right thing to do in this instance.  There are some known issues with beta 4 that are being fixed for beta 5, but I don't know if anything having to do with categories being unavailable to select when editing an article is one of them.

What I'm going to do is split this post and your post above out to a new separate topic, and then I will post a message for Bloc's attention so that he can look at the new topic and perhaps comment on whether the issue you mention is related to one or more of the known bugs tht are being worked on.  In the meantime, you can take a look at the bugtracker and see if any of the known bugs are similar to what you describe.  If you do a search in the bugtracker for "category" you will see that there are a few issues, and some are solved and others aren't yet solved.  Bugtracker is located here --> http://www.tinyportal.net/?action=bugtracker

Be patient,
ZarPrime

EDIT:  This topic was split from this topic ...
http://www.tinyportal.net/index.php/topic,30264.0.html
I have also changed the topic subject
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 28, 2009, 02:30:16 PM
Can you clarify some things for me please? What do you mean by "unable to edit or create articles into my existing blocks"?

Are you saying you are unable to add an article to a right or left block or something? Can you create/edit articles normally? I'm a little confused, sorry.
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 03:31:13 PM
Sorry...

I have blocks on the left and right side, If I make an article it doesnt allow me to put them in these blocks at all, The catergories for these articles doesnt appear in the drop down menu, although they are listed on the "catergories page"  If I put it into the one of the catergories that is in the drop down list then , It will put it in that section , but the 3 categories listed are all buttons in the header part of the site and not the blocks on the side.
I tried putting up a new block , but although it shows as active it doesnt appear on the site, It maybe worthwhile if I could pm somebody on the admin here a log in to my site to show what I mean

Thanks
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 28, 2009, 03:42:36 PM
Feel free to PM me the info and I'll take a quick look to see if I can find what is wrong.
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 04:02:44 PM
Pm sent thanks
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 04:11:46 PM
Just checked the error log on the forum and I am getting the follow
ing
8: Undefined index: tp-admin13
File: /home/peugeot3/public_html/Sources/Subs.php
Line: 2825

8: Undefined index: smileys_enabled
File: /home/peugeot3/public_html/Sources/TPmodules.php
Line: 1758

I have over 100 like this in just over 1 minute
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 28, 2009, 05:16:55 PM
Quote from: dunks on July 28, 2009, 03:31:13 PM
Sorry...

I have blocks on the left and right side, If I make an article it doesnt allow me to put them in these blocks at all, The catergories for these articles doesnt appear in the drop down menu, although they are listed on the "catergories page"  If I put it into the one of the catergories that is in the drop down list then , It will put it in that section , but the 3 categories listed are all buttons in the header part of the site and not the blocks on the side.
I tried putting up a new block , but although it shows as active it doesnt appear on the site, It maybe worthwhile if I could pm somebody on the admin here a log in to my site to show what I mean

Thanks

Specifically which categories are not appearing in your lists for you? Can you give specific examples? When I look at your blocks, I see the categories for the block just fine in the drop down list.

For your other unrelated errors to this topic, please use the search as they have likely been covered. I know that smileys_enabled has been posted about several times.
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 06:11:06 PM
 What i'm doing is admin > Articles and Categories , then it lists "Articles Unassigned To A Category" and below that a list of categories(10 in total) , If I click any of the articles in the Articles Unassigned To A Category it opens the article up, half way down the article is a section " Category " which says not-assigned in a drop down menu, if i click the drop down menu it gives me 3 categories to choose from and not any of the ones that relate to the side blocks, am I doing this the right way ?

Can you get the phase 1 manual to show in the books category ? and explain how you did it please
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 28, 2009, 08:39:33 PM
Sorry, I've been busy here. If you don't mind, I'm going to take a look when if I can when I get back from a meeting here at work. Thank you for the more through explanation, I now understand what you're talking about. :)
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 28, 2009, 09:32:47 PM
Ok No probs, Ive been playing abit though...I uninstalled TP and then put the forum into maintaince mode, I uploaded a new set of smf files via ftp, This then removed all the tp files , I then re-installed tp, And for the first time is installed correctly, but Im still having the same issue as before, So i Persume I must be doing something wrong in the articles, but I dont know what
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 29, 2009, 12:34:36 AM
Ok, I "think" this is related to a category bug here.
http://www.tinyportal.net/index.php?action=bugtracker;sa=bug503

I think you can get around this by re-creating the article. Can you test that out please and let me know if your problem is solved?
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 29, 2009, 07:00:38 AM
Ive looked at that thread gone onto Tportal Admin.php

Line 1164 says <tr class="windowbg">

Line 1220 says <div style="float: left; margin: 4px;"><input name="tp_categories_layout' . $mg['id'] . '" type="radio" value="3" '

Line 1756 says </tr><tr class="windowbg2">

So I cant amend these 3 lines as it asks
But line 1139 & 1668 end in </option so I ve edited these 2 but still no joy
Title: Re: Can't Select New Category After Editing Article
Post by: Freddy on July 29, 2009, 10:39:48 AM
Did you change line 1083 too ?  You need to change all three problem lines.  The first three lines you were referring to were for an earlier version by the way..
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 29, 2009, 11:11:13 PM
Ive just changed that, Still no joy though...Any ideas please
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 30, 2009, 10:08:55 AM
Ok. What ive done today...Ive got my host to set up a test forum and ive gone into that and uploaded TP 1.0 beta 4 Made some blocks and articles and everything works grest, as it should , So this confirms that I am doing every thing as I should, So now what can I do ?

A. Is it possible to re-create my forum onto the test site(I.e all the blocks and artciels )  and then is it possible to upload  my current  smf database,. Is this Possible , and would it resolve the issue ?

B. Is there anyway of comparing  the two sites side by side to find out where the issue lies ? and then alter the origanal site


Any help or thoughts would be greatly appreciated

Thanks
Title: Re: Can't Select New Category After Editing Article
Post by: Ken. on July 30, 2009, 10:56:30 AM
Check out the how-to found here dunks:
The safe way to Clone or Upgrade your Livesite (http://docs.tinyportal.co.uk/index.php/topic,143.html)
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 30, 2009, 02:22:09 PM
Did you try recreating the articles like I suggested?
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 30, 2009, 03:39:35 PM
Quote from: IchBinâ„¢ on July 30, 2009, 02:22:09 PM
Did you try recreating the articles like I suggested?

Yes I did and it still gave me only the 3 category options , yet on my test site it gave me the 6 test catergories I set up
Title: Re: Can't Select New Category After Editing Article
Post by: IchBin on July 30, 2009, 04:10:07 PM
Please attach your TPortalAdmin.template.php file here from the default theme.
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on July 30, 2009, 08:20:21 PM
Quote from: IchBinâ„¢ on July 30, 2009, 04:10:07 PM
Please attach your TPortalAdmin.template.php file here from the default theme.

Ive attached it Thanks

Quote from: Ken on July 30, 2009, 10:56:30 AM
Check out the how-to found here dunks:
The safe way to Clone or Upgrade your Livesite (http://docs.tinyportal.co.uk/index.php/topic,143.html)

Ive read it with interest but ot is way over my capabilities
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on August 01, 2009, 10:48:01 AM
I ve had my host replace my forum with a new set of smf files to see if this resolved the problem, but it hasn't, Im now stuck as to what to do, as I now have a foum that I cannot update any articles on,Does anybody know of any solutions to the issue?

I have back ups from before tp1.893 was installed , would re-installing these remove it and take be back to the old version ?

Title: Re: Can't Select New Category After Editing Article
Post by: ZarPrime on August 01, 2009, 01:51:18 PM
dunks,

I really don't know what to tell you on all of this.  Make sure that your category settings for the categories that aren't showing up in the dropdown are all set the same.  Also, go to another website and clear out your browser cache and cookies and try your site again.  Try another browser and see what happens.

I haven't been able to duplicate the issue you are having, but just to make sure, try copying the code from one of your existing articles and creating a totally new article (paste the code in) and see if the dropdown shows up correctly.  Finally, if all else fails, go through the manual installation and make sure that all the edits that are done when TP is installed were done correctly.

If you go back to a previous version with a backup you'll lose any work you've done since then and any posts made so that is not really a solution.

ZarPrime
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on August 01, 2009, 03:16:11 PM
All categories are the same I checked them when this issue first started and rechecked now as well.

Ive tried it on firefox and ie7 and same on both after deleting cookies etc etc.

Ive uploaded all my current mods to my test forum, and theres no conflict as I can make articles and categoeries without any problems on there at all.

There is 1 common problem with both forums though, If I try to uninstall tiny portal they both show this

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Themes/default/index.template.php    Test failed
4.    Execute Modification    ./Themes/babylon/index.template.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test failed
6.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
7.    Execute Modification    ./Sources/Security.php    Test successful
8.    Execute Modification    ./Sources/Errors.php    Test successful
9.    Execute Modification    ./Themes/default/Help.template.php    Test successful
10.    Execute Modification    ./Sources/Profile.php    Test successful
11.    Execute Modification    ./SSI.php    Test successful
12.    Execute Modification    ./Sources/BoardIndex.php    Test successful
13.    Execute Modification    ./Sources/QueryString.php    Test successful
14.    Execute Modification    ./Sources/Subs-Post.php    Test successful
15.    Execute Modification    ./Sources/Admin.php    Test successful
16.    Execute Modification    ./Sources/Post.php    Test successful

So on the test forum i started removing some of the mods to see when the error message stopping appearing, and after uninstalling smg garage , I am able to uninstall tp without any error messages.
( I tried this on the live site and then re-installed tp but it didnt solve my problems )
If I was to save my articles onto word doc's  and then follow the " manual uninstall tp instructions  "
And then re-install tp and remade the articles do you think this would solve the problem?

I know if I go back to a backed up version I would lose posts, but this probelm only started 2 weeks ago when I installed tp 1.0893, If i reinstalled from 2 weeks ago would it set me back to tp version 0.893 as, that version worked fine on my forum.

Im getting to stage were I may need to pay someone to sort this now as its getting above my capabilites, Does anyone recommend any suitable qualified person who could sort it
Title: Re: Can't Select New Category After Editing Article
Post by: dunks on August 01, 2009, 08:33:22 PM
Ok my plan is this

Save all my articles onto word docs and then delete them form the forum

make a full back up of the forum files and database

Use this guide to remove tp http://docs.tinyportal.co.uk/index.php/topic,146.html

And then depending on the outcome of the above, either

A, Install tp 0.983 and remake all the blocks and articles

B. Reinstall the back up

Would the reinstall of the back up give me the same as I have now ?

Would a fresh install of tp work? as i know you cannot go back to an older version through the package manager

On the guide would i stop at, ( NOTE!! ) if you are uninstalling manually because of upgrading TP to a NEW version, you LEAVE this step alone as you will need to have the TP Tables in your DB to save all content. ....I am installing a new , old version, so do I stop here or carry on

Title: Re: Can't Select New Category After Editing Article
Post by: dunks on August 01, 2009, 11:24:36 PM
Its not ideal but I've found a solution


I edit or make an article as usuall and save it as category no.1

I then went into php myadmin and went into the articles , found the article I edited and altered the category number saved it and it moved it to the correct category and it all works fine.

So now I can do what I need to do but its long winded, I also checked the files form this http://docs.tinyportal.co.uk/index.php/topic,140.html and found one error in the help menu section so ive altered it.

Thank-you for all your help and hopefully a solution may be found soon to make Tp work how it should
Title: Re: Can't Select New Category After Editing Article
Post by: ZarPrime on August 01, 2009, 11:55:45 PM
Yeah, that's another way to do it but certainly not the way we would like it to be.  The bug that Ichbin mentioned earlier in the topic is supposed to be fixed for beta 5 when it's released so we'll see if that solves the problem when the time comes.

For now, we will mark this one solved and hope for the best.

ZarPrime