HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Viewing all entries in a catalogue, regardless of subcategories.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#58771 (In Topic #12818)
Avatar

Well-settled

Hello, hope I can get help on this. :)

If you check metal-temple.com you will see I have a reviews catalogue with lots of subcategories.
Especially the CDs category is broken down to all the letters of the alphabet, that was done due to OCPortal running a bit slow when too many entries are involved.

I need a way though for the readers to be able to see all the latest entries added to reviews, regardless of their subcategory, whether it's a CD review starting from A or a DVD, say the latest 100 reviews.

Anyone got any ideas? :)
Back to the top
 
Posted
Rating:
#58772
Avatar

Fan in action

I think you can do this with a Comcode page with a block embedded into it.

ocPortal.com - ocPortal Tutorial: Advanced custom pages of information

Look for main_cc_embed block - you might be able to filter it to show everything in the catalogue!

If I've helped you, please click 'points' and show your appreciation!
Back to the top
 
Posted
Rating:
#58773
Avatar

Fan in action

Also, the main_recent_cc_entries block can show you the recent entries, but I don't know if you can filter it to display everything in the whole catalogue. Take a look and let us know! :D

If I've helped you, please click 'points' and show your appreciation!
Back to the top
 
Posted
Rating:
#58957
Avatar

Well-settled

Thanks a lot for answering Legz!

I tried both ways;

main_cc_embed block didn't work since selecting Reviews dosn't show the entries in the subcategories and custom ID's work for entries and not subcategories, as far as I know (I hope I'm wrong and Chris will let me know hehe).

main_recent_cc_entries has been heavily customized by me for the front page and I only pass a few things there like band name and cover. I'll see if I can work with that.

If only that block had a display_type= parameter like main_cc_embed does, allowing you to choose which type of list you'll display, it would be awesome and add great flexibility at the way you present your data. I really hope it will be a feature in one of the upcoming patches.

Thanks again for the help. :)
Back to the top
 
Posted
Rating:
#58961
Avatar

This is supposed to be possible, but it's an abstract system running across some of our most abstract complex systems, so in reality I tried it and found a few bugs ;).

Please install the attached (assuming you're running a 4.3.x version)…

Attachment
sources/blocks/main_cc_embed.php
» Download: main_cc_embed.php (3 Kb, 211 downloads so far)

Attachment
sources/ocfiltering.php
» Download: ocfiltering.php (23 Kb, 235 downloads so far)

Attachment
sources/catalogues.php
» Download: catalogues.php (46 Kb, 220 downloads so far)

Attachment
lang/EN/catalogues.ini
» Download: catalogues.ini (15 Kb, 232 downloads so far)


The 'select' attribute is based on ocFilter, and takes precedence over the given 'param' (category ID). So you can do select's that involve multiple categories. You can simply put in '*' there. Or you can be clever. You are correct that normally the numbers in ocFilter are entry ID's, but that's not entirely true. If you use an ocFilter like '7*' the number is a category, and it will select all entries under that category. So if you want to display a specific subtree you can select it with that. You can also mix things, e.g. '7*,10~,1-3,!7' which means "anything under category ID #7 OR entries #1 to #3 – that is not under category ID#7 and is not entry #7".



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#58964
Avatar

Well-settled

Chris, if you ever visit Greece, I owe you all the beers you can handle.  :lol:

I'll upgrade to 4.3.2 first from 4.3.1 (I'm upgrading with every patch that comes out cause I know you put a lot of work in them), install your attached files and let you know what happened.

Thank you soooooo much once again!
Back to the top
 
Posted
Rating:
#59783
Avatar

Well-settled

Ok, been away for a while but I got to try out the patched files you uploaded.

Assuming Reviews category is ID 23 and CDs subcategory is ID 30, trying

Code

or

Code



gives me the following error:

An error has occurred

Internal error (version: 4.3.2, PHP version: 5.2.11, URL: /site/latestreviews.htm)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Metal Temple website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home7/metaltem/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home7/metaltem/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Argsobject


File'/home7/metaltem/public_html/sources/catalogues.php'
Line'125'
Function'fatal_exit'
Argsobject


File'/home7/metaltem/public_html/sources_custom/blocks/main_cc_embed.php'
Line'89'
Function'get_catalogue_category_entry_buildup'
ArgsNULL

'reviews'

array ( 'c_name' => 'reviews', 'c_title' => 5293, 'c_description' => 5292, 'c_display_type' => 2, 'c_is_tree' => 1, 'c_notes' => '', 'c_add_date' => 1268001318, 'c_submit_points' => 0, 'c_ecommerce' => 0, 'c_send_view_reports' => 'never', 't0__text_original' => 'Reviews', 't0__text_parsed' => '', 't1__text_original' => '', 't1__text_parsed' => 'return unserialize("a:6:{i:0;a:0:{}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:0:\"\";}"); ', 't2__text_original' => 'Reviews', 't2__text_parsed' => '', 't3__text_original' => '', 't3__text_parsed' => 'return unserialize("a:6:{i:0;a:0:{}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:0:\"\";}"); ', )

'CATEGORY'

'reviews'

30

0

NULL

23

2


File'/home7/metaltem/public_html/sources/zones.php'
Line'569'
Function'run'
Class'Block_main_cc_embed'
Type'->'
ObjectBlock_main_cc_embed::__set_state(array( ))
Argsarray ( 'param' => '30', 'select' => '30*', 'block' => 'main_cc_embed', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'715'
Function'do_block'
Args'main_cc_embed'

array ( 'param' => '30', 'select' => '30*', 'block' => 'main_cc_embed', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'937'
Function'handle_symbol_preprocessing'
Argsarray ( 0 => array ( ), 1 => 0, 2 => 'BLOCK', 3 => array ( 0 => 'param=30', 1 => 'select=30*', 2 => 'block=main_cc_embed', ), )

NULL


File'/home7/metaltem/public_html/sources/site.php'
Line'768'
Function'handle_symbol_preprocessing'
Class'ocp_tempcode'
Type'->'
Objectobject
Args

File'/home7/metaltem/public_html/site/index.php'
Line'51'
Function'do_site'
Args

as seen at page http://www.metal-temple.com/site/latestreviews.htm

Any idea on what I'm doing wrong?
Back to the top
 
Posted
Rating:
#59784
Avatar

Well-settled

PS: Tried to edit the above post to replace &" with " and remove alt=":)" /> that appeared on its own and I got

There is an error (A syntax error was found inside a tag's attribute definition (attribute bottom" of tag img)) in your Comcode at line 1.

error…  :$
Back to the top
 
Posted
Rating:
#59795
Avatar

Hi,

The attached might fix this.

Attachment
sources/catalogues.php
» Download: catalogues.php (47 Kb, 162 downloads so far)


As for the Comcode problems displayed above, these will be fixed too.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#59808
Avatar

Well-settled

Thanks for the quick reply Chris!

Using

Code



(Reviews main category has ID 23 and so with 23* I'm trying to show all the subcategories, maybe I'm doing something wrong?)

I get:

An error has occurred

Internal error (version: 4.3.2, PHP version: 5.2.11, URL: /site/latestreviews.htm)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Metal Temple website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home7/metaltem/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home7/metaltem/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Argsobject


File'/home7/metaltem/public_html/sources/catalogues.php'
Line'130'
Function'fatal_exit'
Argsobject


File'/home7/metaltem/public_html/sources_custom/blocks/main_cc_embed.php'
Line'89'
Function'get_catalogue_category_entry_buildup'
ArgsNULL

'reviews'

array ( 'c_name' => 'reviews', 'c_title' => 5293, 'c_description' => 5292, 'c_display_type' => 2, 'c_is_tree' => 1, 'c_notes' => '', 'c_add_date' => 1268001318, 'c_submit_points' => 0, 'c_ecommerce' => 0, 'c_send_view_reports' => 'never', 't0__text_original' => 'Reviews', 't0__text_parsed' => '', 't1__text_original' => '', 't1__text_parsed' => 'return unserialize("a:6:{i:0;a:0:{}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:0:\"\";}"); ', 't2__text_original' => 'Reviews', 't2__text_parsed' => '', 't3__text_original' => '', 't3__text_parsed' => 'return unserialize("a:6:{i:0;a:0:{}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:0:\"\";}"); ', )

'CATEGORY'

'reviews'

30

0

NULL

23

2


File'/home7/metaltem/public_html/sources/zones.php'
Line'569'
Function'run'
Class'Block_main_cc_embed'
Type'->'
ObjectBlock_main_cc_embed::__set_state(array( ))
Argsarray ( 'param' => '23', 'select' => '23*', 'display_type' => '0', 'block' => 'main_cc_embed', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'715'
Function'do_block'
Args'main_cc_embed'

array ( 'param' => '23', 'select' => '23*', 'display_type' => '0', 'block' => 'main_cc_embed', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'937'
Function'handle_symbol_preprocessing'
Argsarray ( 0 => array ( ), 1 => 0, 2 => 'BLOCK', 3 => array ( 0 => 'param=23', 1 => 'select=23*', 2 => 'display_type=0', 3 => 'block=main_cc_embed', ), )

NULL


File'/home7/metaltem/public_html/sources/site.php'
Line'768'
Function'handle_symbol_preprocessing'
Class'ocp_tempcode'
Type'->'
Objectobject
Args

File'/home7/metaltem/public_html/site/index.php'
Line'51'
Function'do_site'
Args

Back to the top
 
Posted
Rating:
#59809
Avatar

try putting id="3" into there too. It needs that to find the catalogue involved, and then it falls back to using the actual filter to determine what to get from that catalogue.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#59813
Avatar

Well-settled

Considering the catalogue's ID is 23, what should be the correct syntax to show all entries from this catalogue and its subcategories?

I tried

Code

[block="23" id="23" select="23*" display_type="0"]main_cc_embed[/block]

but it didn't work.

Error, here: http://www.metal-temple.com/site/latestreviews.htm

Thanks again for your time.  :thumbs:
Back to the top
 
Posted
Rating:
#59821
Avatar

Hi,

My last post was incorrect, you were actually right with your Comcode already.
I've tried it myself, and it seems to work, and I've double checked everything:
  • This was a real bug, fixed in the files I posted
  • The files I posted really do have the fix
  • The files we have in our code are equivalent to the files posted here
  • Your Comcode works (with ID numbers substituted for ID's on my test site

Could you double check that main_cc_embed.php and catalogues.php are both correctly updated on your server.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#59825
Avatar

Well-settled

There was a main_cc_embed.php in my sources_custom/blocks folder which I removed.

After doing so though, my home page stopped working and I'm getting this error:

An error has occurred

PHP NOTICE [8] Undefined variable: _order_by in /home7/metaltem/public_html/sources/catalogues.php on line 344 (version: 4.3.2, PHP version: 5.2.11, URL: /start.htm)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Metal Temple website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home7/metaltem/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home7/metaltem/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP NOTICE [8] Undefined variable: _order_by in /home7/metaltem/public_html/sources/catalogues.php on line 344'


File'/home7/metaltem/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP NOTICE [8] Undefined variable: _order_by in /home7/metaltem/public_html/sources/catalogues.php on line 344'

false


File'/home7/metaltem/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'notice'

8

'Undefined variable: _order_by'

'/home7/metaltem/public_html/sources/catalogues.php'

344


File'/home7/metaltem/public_html/sources/catalogues.php'
Line'344'
Function'ocportal_error_handler'
Args

File'/home7/metaltem/public_html/sources/blocks/main_recent_cc_entries.php'
Line'70'
Function'get_catalogue_category_entry_buildup'
Args

File'/home7/metaltem/public_html/sources/zones.php'
Line'606'
Function'run'
Class'Block_main_recent_cc_entries'
Type'->'
ObjectBlock_main_recent_cc_entries::__set_state(array( ))
Argsarray ( 'param' => '12', 'catalogue' => 'reviews', 'zone' => '_SEARCH', 'block' => 'main_recent_cc_entries', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'715'
Function'do_block'
Args'main_recent_cc_entries'

array ( 'param' => '12', 'catalogue' => 'reviews', 'zone' => '_SEARCH', 'block' => 'main_recent_cc_entries', )


File'/home7/metaltem/public_html/sources/tempcode.php'
Line'937'
Function'handle_symbol_preprocessing'
Argsarray ( 0 => array ( ), 1 => 0, 2 => 'BLOCK', 3 => array ( 0 => 'param=12', 1 => 'catalogue=reviews', 2 => 'zone=_SEARCH', 3 => 'block=main_recent_cc_entries', ), )

NULL


File'/home7/metaltem/public_html/sources/site.php'
Line'768'
Function'handle_symbol_preprocessing'
Class'ocp_tempcode'
Type'->'
Objectobject
Args

File'/home7/metaltem/public_html/index.php'
Line'114'
Function'do_site'
Args

Also, the page where all the entries in the category would be viewed gives me this error:

Fatal error: Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290

An error has occurred

PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290 (version: 4.3.2, PHP version: 5.2.11, URL: /site/latestreviews.htm)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Metal Temple website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home7/metaltem/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home7/metaltem/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290'


File'/home7/metaltem/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290'

false


File'/home7/metaltem/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'error'

1

'Maximum execution time of 60 seconds exceeded'

'/home7/metaltem/public_html/sources/tempcode.php'

1290


File'/home7/metaltem/public_html/sources/global2.php'
Line'665'
Function'ocportal_error_handler'
Args1

'Maximum execution time of 60 seconds exceeded'

'/home7/metaltem/public_html/sources/tempcode.php'

1290


Function'catch_fatal_errors'
Args

I'm guessing this is due to too many entries trying to be displayed and the system calling a timeout. Is there a way, using main_cc_embed to speed up the query or limit it to say the latest 500 entries instead of loading all 6000 of them?

In my opinion the problem right now is loading all data from the get-go instead of loading them while you browse through the pages, it's what makes search acting very slow when thousands of category entries are involved. Of course I don't know if that would be possible but speeding queries up for large catalogues would make what's already an outstanding CMS, simply perfect!




Page currently not working is at http://www.metal-temple.com/start.htm
Page refusing to load is at http://www.metal-temple.com/site/latestreviews.htm

Thanks a lot Chris!
">
Back to the top
 
Posted
Rating:
#59828
Avatar

Well-settled

PS: I replaced the patched catalogues.php (the second version you attached) with the original 4.3.2 one cause the site's first page was down for a bit long and my site crew was whining.  :lol:

So you won't see the error in the previous /start.htm link.
Back to the top
 
Posted
Rating:
#59849
Avatar

Hi,

Hopefully this will fix that. We added a new feature (just a very little thing) to catalogues for the next version, and caused that bug.

Attachment
sources/catalogues.php
» Download: catalogues.php (47 Kb, 203 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#59854
Avatar

Well-settled

Thanks Chris! That worked fine for the front page, no problems there. :)

When trying to display the category entries though, I get this:

An error has occurred

PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290 (version: 4.3.2, PHP version: 5.2.11, URL: /site/latestreviews.htm)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Metal Temple website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home7/metaltem/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home7/metaltem/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290'


File'/home7/metaltem/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP ERROR [1] Maximum execution time of 60 seconds exceeded in /home7/metaltem/public_html/sources/tempcode.php on line 1290'

false


File'/home7/metaltem/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'error'

1

'Maximum execution time of 60 seconds exceeded'

'/home7/metaltem/public_html/sources/tempcode.php'

1290


File'/home7/metaltem/public_html/sources/global2.php'
Line'665'
Function'ocportal_error_handler'
Args1

'Maximum execution time of 60 seconds exceeded'

'/home7/metaltem/public_html/sources/tempcode.php'

1290


Function'catch_fatal_errors'
Args

As I said in an earlier post, since this category has around 6000 entries, php (or my sql) times out because it takes a long time to load them, same problem I have with the search function, takes around a minute to display results and I've been having many complains about that. :(

Weird thing is that I tried displaying entries from a subcategory which has around 12 entries and after 10 minutes all I got was a server error...

Dunno if you had another site with these many catalogue entries, but I'd gladly offer full cms and ftp access to the site if you want to experiment with it, if it helps to implement speed improvements to future ocPortal versions. :) Anything to help out this amazing platform and its helpful community.
Back to the top
 
Posted
Rating:
#59855
Avatar

Well-settled

Update on the patched catalogues.php you attached last.
When you view a catalogue entry with comcode formatting (such as bold, italics etc.) it shows the code instead of rendering it so I had to replace it with the original 4.3.2 again.  :$
Back to the top
 
Posted
Rating:
#59856
Avatar

Hi,

I'm not sure about the slowness problem yet, but this should solve the other one:

Attachment
» Download: catalogues.php (47 Kb, 207 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#59857
Avatar

Well-settled

Worked great, thanks. :) Let me know if there's an update on the slowness part and if I can help in any way!

I'm guessing there's not an option in main_cc_embed.php to show X number of entries instead of all, right? For example limit it to 500 entries.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand