TinyPortal

Development => Support => Topic started by: NIBOGO on October 12, 2008, 01:14:50 AM

Title: Empty Articles and Articles Categories
Post by: NIBOGO on October 12, 2008, 01:14:50 AM
I update to TP v1.06 but I cant access to my articles:

http://www.mundo-se.com/index.php?page=2

I dont know what happend , any idea??
Title: Re: Empty Articles and Articles Categories
Post by: bloc on October 12, 2008, 02:10:34 AM
Make sure your custom theme has its TPBlockLayout.template file updated as well. It would seem its using a custom TP template as the TP copyright is located inline with SMF copyright on your site. TP copyright normally appear above.
Title: Re: Empty Articles and Articles Categories
Post by: NIBOGO on October 12, 2008, 02:44:56 AM
Quote from: Bloc on October 12, 2008, 02:10:34 AM
Make sure your custom theme has its TPBlockLayout.template file updated as well. It would seem its using a custom TP template as the TP copyright is located inline with SMF copyright on your site. TP copyright normally appear above.

Yes I have the TPBlocksLayout.template.template on my theme folder and is the file from tp v1.06 I only edit the copyright to moved before the SMF Copyright
Title: Re: Empty Articles and Articles Categories
Post by: bloc on October 12, 2008, 09:04:05 AM
Ok, assuming no other changes were made...if article(s) do not show, check that they 1) are in a category and that they 2) have a defined type. Meaning if its HTML type, check that its set to that, and not PHP for example.
Title: Re: Empty Articles and Articles Categories
Post by: NIBOGO on October 13, 2008, 12:52:08 AM
Quote from: Bloc on October 12, 2008, 09:04:05 AM
Ok, assuming no other changes were made...if article(s) do not show, check that they 1) are in a category and that they 2) have a defined type. Meaning if its HTML type, check that its set to that, and not PHP for example.

1-) This happend with all the categories

2-) I test with bbc , php and html articles :s
Title: Re: Empty Articles and Articles Categories
Post by: Starrbuck on October 13, 2008, 12:57:37 AM
My article is not appearing.  Now just a '2' is in the article.
Title: Re: Empty Articles and Articles Categories
Post by: NIBOGO on October 13, 2008, 03:36:39 AM
I re-upload all the files of the TP V1.06 but nothing happend I still having the same error :s

Also I try to edit the article and I can do it , I see all the code but I cant see the article :s
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 13, 2008, 05:58:15 AM
Have you placed your articles inside categories ?

They MUST be inside categories to show...
Title: Re: Empty Articles and Articles Categories
Post by: Kronos on October 13, 2008, 07:44:37 PM
Hello, I'm currently having the exact same problem.

My articles are in a category and I've just set up a html test page, still the page doesn't show up.

Example: http://www.inter-com.ath.cx/index.php?page=4 (http://www.inter-com.ath.cx/index.php?page=4)

This "access" block someone was talking about in a different topic over here (http://www.tinyportal.net/index.php/topic,26492.msg211868.html#msg211868) has yet to be discovered by me.
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 13, 2008, 07:46:30 PM
What are the permissions for member groups allowed to view the category in the category settings?
Title: Re: Empty Articles and Articles Categories
Post by: Kronos on October 13, 2008, 07:47:43 PM
Alright, sorry just found the access box. However, even when all user groups are checked it still comes up with the same problem.
Title: Re: Empty Articles and Articles Categories
Post by: ed_m2 on October 13, 2008, 07:50:11 PM
related to this bug ?

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

(see also my response)
Title: Re: Empty Articles and Articles Categories
Post by: Kronos on October 13, 2008, 08:05:31 PM
Partly yes, I can still add top categories though. The categories having disappeared from the dropdown in the editing page of the menu item occurs over here as well.

I know it's a bug but it isn't a big problem for me now, I can still add separate articles to the menu as items but the pages they direct to are empty or at least aren't showing the articles they should.
Title: Re: Empty Articles and Articles Categories
Post by: NIBOGO on October 13, 2008, 10:12:09 PM
Quote from: G6 on October 13, 2008, 05:58:15 AM
Have you placed your articles inside categories ?

They MUST be inside categories to show...

of course

Quote from: IchBinâ,,¢ on October 13, 2008, 07:46:30 PM
What are the permissions for member groups allowed to view the category in the category settings?

I am the admin , I can view anything
Title: Re: Empty Articles and Articles Categories
Post by: wildcard on October 13, 2008, 10:41:57 PM
I think I've found the issue after playing around with it a bit.  In the blocks overview page in TPadmin, the option to set "one article" under the "Type" column is no longer available in tp106b2.  It is still there when I switched back to tp105b1, however.  Could this be the issue?
Title: Re: Empty Articles and Articles Categories
Post by: NIBOGO on October 13, 2008, 11:02:42 PM
I try to create a total new category and a new article with bbcodes and I have the same error :s

I check the database and everything is ok

What more I can do?
Title: Re: Empty Articles and Articles Categories
Post by: jdvarner on October 14, 2008, 05:37:38 AM
I am also having this problem. I thought going from 1.0.5 to 1.0.6 would fix this. Same issue. No articles are showing. Is there an ssi or something i can point to that will bring up the articles until a fix is made. thanks.
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 14, 2008, 05:52:15 AM
No
Title: Re: Empty Articles and Articles Categories
Post by: jdvarner on October 14, 2008, 05:59:38 AM
Thank You G6 for your response. Actually yes, i can use SSI to draw one article at a time... Would think there is one to group them all together from one category. Is there a reason why articles are not showing in 1.0.6? The article option is there; I only assume It should work. Would be great feature to have it. Is there a work around fix I could implement to make articles appear on the front page?
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 14, 2008, 06:02:03 AM
They dont show as they need categories to be places and sorted in.
Also, there are some big big bugs in the article and articles code and if you read the thread, you wouls have seen we have posted a few in the bugtracker allready.
We will take our time and fix these bugs, not use the time to find temp fixes  ;)
Title: Re: Empty Articles and Articles Categories
Post by: jdvarner on October 14, 2008, 06:11:01 AM
okay. they are in categories. theres bugs. ahh okay. didnt see that.

big big bugs shouldn't be part of a release then.

I hope you have a superb day or even win the lottery. Something to make you smile.
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 14, 2008, 06:49:14 AM
Dont understand how you can expect a beta product to be bugfree......

And i allready have won the biggest lottery you could win, it's called life for both me and my children  ;)
Title: Re: Empty Articles and Articles Categories
Post by: Kronos on October 14, 2008, 07:53:23 AM
Thanks for looking into this, good luck trying to fix it.
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 14, 2008, 03:11:03 PM
Quote from: jdvarner on October 14, 2008, 06:11:01 AM
okay. they are in categories. theres bugs. ahh okay. didnt see that.

big big bugs shouldn't be part of a release then.

Its not a big bug IMO. As it only has affected a select few. I have no problems with what you posting about here. And yes, please do remember its beta. We do our best to iron out the bugs so everyone else doesn't have to deal with them. But if we can't reproduce the issue, how can troubleshoot or fix the issue? Give it time, and I'm sure Bloc will nail down some things for another release.
Title: Re: Empty Articles and Articles Categories
Post by: Rus on October 15, 2008, 05:12:49 PM
I have this problem as well.  All my articles are empty.  Default theme, in categories, etc.

I don't know if this helps but I get a lot of this error when trying to preview them:


8: Undefined variable: k
File: /home/xxx/public_html/forum/Sources/TPortal.php
Line: 1724
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 15, 2008, 07:16:26 PM
Rus, would you mind letting me look at it?
Title: Re: Empty Articles and Articles Categories
Post by: misjka on October 15, 2008, 08:26:52 PM
Quote from: Kronos on October 13, 2008, 08:05:31 PM
Partly yes, I can still add top categories though. The categories having disappeared from the dropdown in the editing page of the menu item occurs over here as well.
Does this also apply to you: http://www.tinyportal.net/index.php/topic,26513.msg212376.html#msg212376 ? That is, the articles are shown if you set them on the front page?
Title: Re: Empty Articles and Articles Categories
Post by: Rus on October 15, 2008, 09:28:31 PM
No problem, I'll pm you a test account with admin.
Title: Re: Empty Articles and Articles Categories
Post by: Starrbuck on October 15, 2008, 10:12:46 PM
Yep, very minor bug for me.  Right now I don't really need to display any articles, so I just turned off access to them for everybody.  I'm the only one who sees the bug right now, since I'm the only admin.

Keep up the great work, guys, and please let us know when a fix is found.
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 15, 2008, 10:36:47 PM
Quote from: Rus on October 15, 2008, 09:28:31 PM
No problem, I'll pm you a test account with admin.
Probably won't be able to look until tomorrow if you're ok with that.
Title: Re: Empty Articles and Articles Categories
Post by: misjka on October 16, 2008, 06:12:56 AM
Quote from: Starrbuck on October 15, 2008, 10:12:46 PM
Yep, very minor bug for me.  Right now I don't really need to display any articles, so I just turned off access to them for everybody.  I'm the only one who sees the bug right now, since I'm the only admin.

Keep up the great work, guys, and please let us know when a fix is found.

Well,. to me this is a major bug since the site I was building up depends on quite an extensive article and category structure  :'(...
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 16, 2008, 07:29:37 AM
Well, it's more or less a bug, big or small it's a bug.
Bloc is working on it on every available minute he have to find it.
Your articles are not gone, they are still in the database, just not showing up in the list.
Patient and it will be back as soon as Bloc have found out why it doesent at this point.
Title: Re: Empty Articles and Articles Categories
Post by: misjka on October 16, 2008, 08:18:43 AM
Quote from: G6 on October 16, 2008, 07:29:37 AM
Well, it's more or less a bug, big or small it's a bug.
Bloc is working on it on every available minute he have to find it.
Your articles are not gone, they are still in the database, just not showing up in the list.
Patient and it will be back as soon as Bloc have found out why it doesent at this point.
Yep, I'm patient (well aware of the beta state). And I agree with you about the minor/major point of view :). There may be subjective points of  view of it, but for Bloc it sure would be from a technically point of view quite a critical bug since the "CMS" part of the portal is at stake. So, the discussion of subjective minor/major will lead nowhere from here...
Title: Re: Empty Articles and Articles Categories
Post by: G6Cad on October 16, 2008, 08:25:27 AM
Exactly.
Therefor we lock this topic down as it shows a bug, it's been reported in the tracker, and Bloc is working on a fix as soon as he have the time.
As usuall he always post when he know how to fix it or when he added it to the next update package..
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 04:52:44 PM
Ok a little info for some of you. I'd like to unlock this topic so we can discuss further since I had a little break through on the cause after looking at Rus's site. I noticed that on every article or category view the frontpage blocks were showing. So I changed what was displayed on the frontpage temporarily to test. It seemed that the articles and cats were working after changing the frontpage setting to display articles only. Are any of you using frontpage blocks?
Title: Re: Empty Articles and Articles Categories
Post by: Rus on October 16, 2008, 05:07:07 PM
Thanks for looking at it!  I'll leave your account there in case you want to do any more looking later.
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 05:11:09 PM
I confirmed it on my test site as well. I'm putting in a bug in the bug tracker.
Title: Re: Empty Articles and Articles Categories
Post by: Bluto on October 16, 2008, 05:11:57 PM
Yes. It only works as you stated. Articles only, with all the blocks set to display in the article category.
Title: Re: Empty Articles and Articles Categories
Post by: misjka on October 16, 2008, 05:13:05 PM
QuoteAre any of you using frontpage blocks?
Nope, not me. In my case I suspect it goes deeper down, because when trying to edit article or category blocks all the articles and categories are gone...

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fpublic2.racingmates.se%2F0_Diverse%2FTParticleBlockError1.gif&hash=3ffaee282b00ea8cde3b6daafcd31ecb34038d6d)
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 05:16:14 PM
Would help if you told me what you were using for your frontpage settings then. :)
Title: Re: Empty Articles and Articles Categories
Post by: Lafemme on October 16, 2008, 05:19:30 PM
yes i am... using the option : show features and frontblock only. I wanted to display only articles.. but i can not manage to get more then one article on the frontpage... even if set to show on frontpage...
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 05:26:22 PM
So you were using frontpage blocks lol.

So you want more articles showing on the frontpage? Do you have them both options checked for activation and display on frontpage?
Title: Re: Empty Articles and Articles Categories
Post by: misjka on October 16, 2008, 05:29:44 PM
QuoteWould help if you told me what you were using for your frontpage settings then.

OK, here they are :):

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fpublic2.racingmates.se%2F0_Diverse%2FTPfrontpageSettings1.gif&hash=e809408461709841ef2d14ada2a883b7802967cb)

The Hide Frontpanel I've set to ON here, but before it was Frontpanel before content... With the same result.

Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 05:37:37 PM
Perhaps it would be better if you just told me what you are trying to achieve. What do you want to display on your front page?
Title: Re: Empty Articles and Articles Categories
Post by: Lafemme on October 16, 2008, 05:52:55 PM
Quote from: IchBinâ,,¢ on October 16, 2008, 05:26:22 PM
So you were using frontpage blocks lol.

So you want more articles showing on the frontpage? Do you have them both options checked for activation and display on frontpage?

yes... i want more aricles on the frontblock.. i had checked display on frontpage for both  articles and has set the frontpage to show only articles.. but did not work properly (shown only the article with not title, or showing the whole article even with use intro enabled.. and later when i tryd to fix that.. it didn't worked at all anymore.. only showing one article.

So i had to change the frontpage setting to show frontpage block and featured article, because that was the only option to display it properly as it should.. even thought i can not use the intro function on a featured article...

Anyway... it seems like i have more troubles then usual, so G6 thinks that there went something wrong with the update, since i have issues that should have been resolved in the new release. I am trying to check want went wrong with the articles that she gave me.
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 16, 2008, 08:09:26 PM
I have split some posts of here to separate the issues.
Title: Re: Empty Articles and Articles Categories
Post by: jdvarner on October 17, 2008, 01:12:48 AM
IchBin, for me i was trying to do it like you could do it in tp0.98. The below works with no issue in 0.98 (so perhaps its my fault and im posting on wrong thread). But i can concur the scenario of just displaying on front page results in same thing. Article Returns to Front Screen of Website.

Where you were able to display the articles in left or right block. Would list all the titles of the articles and who wrote them. They would list in order as they were submitted.

I can get them to show if i use the article block in the block snippets here on this site; however when you click the article it just takes you back to the front page of the website.

This is the block snippet http://www.tinyportal.net/index.php/topic,3320.0.html

Actual Code being used from this snippet  (Still only returns user to front screen if clicked)

$articles=db_query("SELECT id,subject,intro,author FROM smf_tp_articles WHERE approved=1 AND off=0 ORDER BY date DESC", __FILE__,__LINE__);
$cnt=0;
While ($row=mysql_fetch_row($articles))

{
   // The number of articles you want displayed
   if ($cnt < 5) {
    echo '<table cellspacing="0" cellpadding="0" width="100%" style="margin-top: 4px;
             margin-bottom: 4px;" border="0" class="tborder"><tr>';
    echo '
    <a href="http://www.othersi.com/index.php?page=' . $row[0] . '"><b>' . $row[1] . '</b></a>
     <div style="padding: 8px; padding-top: 0px;">
By : <b>' . $row[3] . '</b></div>

</td>';
     echo '</tr></table>';
    }
   $cnt++;
}
If  ($cnt=0) {
    echo '<td>No Reviews Available';
    }


If I recall in TP 0.98 there was a built in block that actually allowed the admin to select recent article, certain amount of articles that they could display and they could put that in any block that TP does... left, right, front page and so on. Maybe we have to go back to that and see whats the difference? Just throwing that out there as an idea.
Title: Re: Empty Articles and Articles Categories
Post by: wildcard on October 17, 2008, 04:18:55 AM
Quote from: IchBinâ,,¢ on October 16, 2008, 04:52:44 PM
Ok a little info for some of you. I'd like to unlock this topic so we can discuss further since I had a little break through on the cause after looking at Rus's site. I noticed that on every article or category view the frontpage blocks were showing. So I changed what was displayed on the frontpage temporarily to test. It seemed that the articles and cats were working after changing the frontpage setting to display articles only. Are any of you using frontpage blocks?

Yes, I had a front page block active on my site.  I've since gone back to 1.0.5 b1, however, until this issue was resolved with 1.0.6 b2.
Title: Re: Empty Articles and Articles Categories
Post by: buzinator on October 20, 2008, 10:00:29 PM
Nice to see a fix on the horizon ... until 1.0.7 though, rolling back or 'downgrading' may be something I need to do ... @ Wildcard, did you just uninstall 1.0.6 and then reinstall 1.0.5? simple as that? (All your data and block config was retained?)
Title: Re: Empty Articles and Articles Categories
Post by: wildcard on October 20, 2008, 11:33:52 PM
Quote from: buzinator on October 20, 2008, 10:00:29 PM
Nice to see a fix on the horizon ... until 1.0.7 though, rolling back or 'downgrading' may be something I need to do ... @ Wildcard, did you just uninstall 1.0.6 and then reinstall 1.0.5? simple as that? (All your data and block config was retained?)

Yup...just uninstalled 1.0.6 and reapplied 1.0.5 in the package manager.  Is that bad?  :)
Title: Re: Empty Articles and Articles Categories
Post by: buzinator on October 21, 2008, 12:12:57 AM
lol, my n00bness is showing. I'm still floored by things like that, after wasting so many years in the Nuke environment. Tip of the hat to the SMF guys, Bloc and his helpers. What a system!
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 21, 2008, 04:46:41 AM
Well thats cool it worked. lol For some reason I didn't think it would....
Title: Re: Empty Articles and Articles Categories
Post by: Lafemme on October 21, 2008, 02:47:02 PM
i can't uninstall.. i get 4 errors... and i was stupid enough NOT to make a back-up..
Title: Re: Empty Articles and Articles Categories
Post by: Bluto on October 21, 2008, 02:56:30 PM
I didn't think an uninstall would work, but I guess it did for Wildcard.
I would think the only way it could possibly work is if you didn't have any mods installed, and it was just SMF with TP.
Or, if you edited out all your mods first, then.....maybe
Title: Re: Empty Articles and Articles Categories
Post by: groan on October 21, 2008, 03:30:58 PM
uninstall to 105 did not help in my case. i still do not see my artcles except if viewed on the front page.
sigh. ow well, not a show stopper for me but would be nice to have.
Title: Re: Empty Articles and Articles Categories
Post by: groan on October 21, 2008, 03:41:44 PM
I installed a custom template (as you can see
http://war.groan.ca

and looking at the default template i am missing a TON of files, is that so?
I added that tpblocklayout.tempalte file as i read in another thread that it may have helped, btu alas no.

Title: Re: Empty Articles and Articles Categories
Post by: Bluto on October 21, 2008, 03:53:33 PM
Yep, you're missing a ton of files and folders. Sources, Themes,Packages, Smileys,....almost all of SMF, and all of TP.
Do you have a restore option in your cPanel?
Title: Re: Empty Articles and Articles Categories
Post by: groan on October 21, 2008, 04:07:56 PM
Oh sorry, you are just looking at the inside of the theme directory.

Title: Re: Empty Articles and Articles Categories
Post by: Bluto on October 21, 2008, 04:11:16 PM
Ooops....my bad.
Title: Re: Empty Articles and Articles Categories
Post by: Onekind on October 21, 2008, 08:41:19 PM
Quote from: groan on October 21, 2008, 03:41:44 PM
I installed a custom template (as you can see
http://war.groan.ca

and looking at the default template i am missing a TON of files, is that so?
I added that tpblocklayout.tempalte file as i read in another thread that it may have helped, btu alas no.


Groan, I have the exact same issue with the wardb warhammer roster. If I enable it on the frontpage is shows, otherwise nothing. Worked fine in 1.05
Title: Re: Empty Articles and Articles Categories
Post by: groan on October 21, 2008, 08:48:44 PM
weird taht when I try to go back to 105 it dosnt make a dif. oh well, i'll wait for a fix or post it on another page. (hmm, iframe of our roster...)
Title: Re: Empty Articles and Articles Categories
Post by: wildcard on October 21, 2008, 10:45:36 PM
Quote from: Bluto on October 21, 2008, 02:56:30 PM
I didn't think an uninstall would work, but I guess it did for Wildcard.
I would think the only way it could possibly work is if you didn't have any mods installed, and it was just SMF with TP.
Or, if you edited out all your mods first, then.....maybe

The only mod running at the time was the Multiple Badges mod.
Title: Re: Empty Articles and Articles Categories
Post by: jdvarner on October 22, 2008, 12:11:24 AM
more me i had to uninstall all mods first, then uninstall 1.0.6, and then delete all tp files, reinstall 1.0.5 and then i was good and articles show in 1.0.5


I Take That Back.

Now getting this again when a regular user tries to click submit article: Unable to load the 'main' template.

I know its a bug.
Title: Re: Empty Articles and Articles Categories
Post by: Bluto on October 22, 2008, 01:32:52 AM
Yep, back to normal for 1.0.5 ;D
Title: Re: Empty Articles and Articles Categories
Post by: IchBin on October 22, 2008, 02:33:38 AM
This topic is getting way off base. I'll lock this now. Anyone have any problems that are different than this topic feel free to open another topic of your own.