We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Updated from 2.5.x to 2.10.1 - all categories showing

Development and Programming

adambeazley's avatar
adambeazley
153 posts
10 years ago
adambeazley's avatar adambeazley

Hello guys/gals,

I havent messed with EE in a while so forgive my ignorance. IO just updated from 2.5.x to 2.10.1 and now my page which shows all of our projects based on categories shows all projects on all category pages. Here is the function i was using on 2.5.x which is now not working:



Any help identifying which command/EE code is no longer working with the new version would be much appreciated.

       
adambeazley's avatar
adambeazley
153 posts
10 years ago
adambeazley's avatar adambeazley

So after some testing it appears that EE is not recognizing that it is on a Category page…

When the code below is executed on a category page www.website.com/projects/worship/C5 it list all projects in the entire channel, not just the projects in the C5 category like it is supposed to.

{if segment_3}<!-- List of all Entries in a Category-->
{exp:channel:entries channel="projects" limit="20"}
...

If I physically change the code as shown below and go to the same URL it prints out the projects in C5 category…

{if segment_3}<!-- List of all Entries in a Category-->
{exp:channel:entries channel="projects" category="5" limit="20"}
...

This seems to be an issue with EE and not my code… am I missing something here? Is there some new obscure setting somewhere that i need to enable?

thanks,

       
adambeazley's avatar
adambeazley
153 posts
10 years ago
adambeazley's avatar adambeazley

Please everyone.. stop answering all at once </end sarcasm>

So after messing around int he control panel I found that when i go into the Administration -> Categories -> and select the “Projects” category, I cannot edit any of the categories. When i choose a category and select “Edit” i get the following Fatal error:

Fatal error: Call to undefined function EllisLab\ExpressionEngine\Library\Mime\finfo_open() in /home/user/EE_system_files/EllisLab/ExpressionEngine/Library/Mime/MimeType.php on line 117

any ideas on what is going on here?

       
Jos Medinger's avatar
Jos Medinger
16 posts
10 years ago
Jos Medinger's avatar Jos Medinger

There’s a mention of the mimes issue on this Ellislab blog post…

https://ellislab.com/blog/entry/fileinfo-in-2-10-0

       
adambeazley's avatar
adambeazley
153 posts
10 years ago
adambeazley's avatar adambeazley

yep its currently set to disabled. I have a ticket into my server support to get that changed. Do you think that is the reason for the first issue I was talking about.

       
Jos Medinger's avatar
Jos Medinger
16 posts
10 years ago
Jos Medinger's avatar Jos Medinger

The first issue is something different…

I’d consider using Low Seg2Cat to help you pull out the category you need to change

{exp:channel:entries channel="projects" limit="20"}

into

exp:channel:entries channel="projects" category="{segment_3_category_id}" limit="20"}

Note: code untested - might be {segment_3_cat_id} - can’t remember!

       
adambeazley's avatar
adambeazley
153 posts
10 years ago
adambeazley's avatar adambeazley

Thanks Jos,

that extension did the trick, but the {segment_3_category_id} call wasn’t working for me, but the {segment_category_ids} call worked just fine.

thanks you very much.

Do you happen to know a way around the finfo_open() issue. Unfortunately my host cannot enable fileinfo PHP extension.

       
Paul Cripps (Nine Four)'s avatar
Paul Cripps (Nine Four)
104 posts
10 years ago
Paul Cripps (Nine Four)'s avatar Paul Cripps (Nine Four)

Hello, did you get the ‘finfo_open() issue’ resolved as your host could not enable this?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.