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.


The "Recommend" function times out consistently with one theme

Login / Search

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

Community saint

Since moving my site, I have noticed that I have a problem with the "Recommend" feature consistently timing out. This is probably not a reflection on eLief but rather an indication that I had not tested the function after creating my new theme with the Theme Wizard while on the old host. I do know that it was working prior to that and, in fact, it runs fine with the default theme and the theme created at the time of setup. All the same changes are included in the first custom theme and the new theme, but the problem seems to affect only the new theme.

Has anyone else had an issue with the "Recommend" feature timing out after creating a new theme with the Theme Wizard?

Any insight greatly appreciated.

Bob
Back to the top
 
Posted
Rating:
#73882
Avatar

Community saint

Trying to diagnose this further, I removed the three TPL files I had in templates_custom for my custom theme that is giving me problems. I cleared the cache and hoped that the Recommend feature would work (meaning a problem in one of my TPLs). No dice - I still got the timeout so it's related to my custom theme but it is not the result of any of my custom templets. This leaves CSS but it seems very strange that any CSS would cause a server to timeout.

I'm really at a loss here. Anyone have any thoughts on what I might look for?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#73927
Avatar

Was a nasty bug in the CSS filtering system our email code uses (only CSS rules that may apply to an email's HTML are embedded).

It's triggered by a CSS error, if there is a missing '}' at the end of the file and the last brace in the file is '{'. i.e. this is correct:

Code

[code]
.example {
}
[/code]
this would fail:

Code

.example {
this would not fail:

Code

.example {

.example2 {
}

Fix applied, and your CSS is fixed too now.


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:
#73929
Avatar

Community saint

Thanks very much, Chris.

Now I get to start sending out invites.

Bob
Back to the top
 
Posted
Rating:
#73941
Avatar

Community saint

Oh, it was so nice sending out my first invite.

Thanks again, Chris.

Bob
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: