Hi,

I've used the article module to create a news section for my site and added 17 categories to Administer » Content management » Categories, creating a News taxonomy.
In the News section, the newly created News Categories do not appear. Only 17 "General (3)" titles with the description I created for General underneath [(3) being how many articles are currently in "General", which is correct].
Is there a bug, or have I not enabled something on my side to display the other 16 News Categories, even if they don't have any articles in them?

Comments

msameer’s picture

Do you mean that the general one is repeated 17 times ?

What's tje version of php you are using ?

Did you select it in "Article Vocabularies" in admin/settings/article ?

Jack_Sparrow’s picture

Hi msameer,

Thanks for the reply.
Yes, it looks like this below:

Article Categories

*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)
*
General (3)

(I took out the description)
It comes up 17 times, & that's how many categories I added.

I went to Administer » Content management » Categories, & added vocabulary "News" with "Story type" selected.
Then I went to Administer » Site configuration » Article, & selected "News" in the Article Vocabularies.

I've enabled the Recent Articles Box.
I also changed the box title to read "Latest News", but it stays "Latest Articles" <-- Problem 2

PHP version 4.4.61

msameer’s picture

I'm sorry but the latest php version is 4.4.6!

As for problem #2, please submit another issue.

Jack_Sparrow’s picture

msameer,

Perhaps my hosts was too eager in giving me the PHP version number & made a mistake by adding the 1.

Is there a problem if we made a mistake by adding the 1?
Is there no solution to my problem, just because we added the 1 to the PHP version?
I don't understand???

I'll repost a seperate bug report for "Problem 2" - Thank you!

BTW - I meant 16 category entries, not 17 - Just in case that's a problem too???

msameer’s picture

You don't need to ask the support to give you the php version number. A file with

<?php phpinfo(); ?>

is enough.

How can I know now that it's 4.4.6 ? and not 5.0 ? not 4.0 ? not a CVS version your host is using ? Not a heavily patched php version ? How would I know ?

Jack_Sparrow’s picture

msameer,

Thanks for the clarity.

PHP version 4.4.1

What other info is required?

msameer’s picture

Assigned: Unassigned » msameer

This is a php 4.4.1 regression introduced in 4.4.1 and was fixed in 4.4.2

Please check here: http://fi.php.net/releases/4_4_2.php

key() and current() regression related to references.

And here: http://fi.php.net/ChangeLog-4.php#4.4.2

What's the possibility of talking to your host ?

Jack_Sparrow’s picture

Thanks msameer,

I chatted with the host & they say they unfortunately only support 4.4.1 but will be upgrading in the future...

Any chance of a patch in the meantime?

msameer’s picture

The problem is that there's no workaround that I'm aware of. The code needs to be rewritten not to use current() and next()

I'll try to compile 4.4.1 and see what can be done.

msameer’s picture

You can still talk to the host support and tell tell them they are using a php with a regression from the 4.4.0

msameer’s picture

Title: Article Category » regression in php 4.4.1 is breaking the article category display.
Status: Active » Closed (won't fix)

I'm sorry but I'm not going to rewrite the code because of a regression that has been fixed in the next version of php.

Beside, I failed to get 4.4.1 to work.

Anyone else is welcomed to try and fix this.