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.


[Resolved] v9.0.3 Critical error adding a new banner

Login / Search

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

Community saint

When adding a banner I get a "The banner must be of a resolution 250116." error message when saving and a link to a stack trace, but when clicking the link it just goes back to site home and gives me the option to turn off fatalistic mode. I never get to see the actual stack trace.

Steve
Back to the top
 
Posted
Rating:
#93550
Avatar

Community saint

I forgot to mention I created a new banner type and gave it a size of 250 wide and 116 high. I then chose the new banner type when I tried adding a new banner 250 wide and 116 high.

Steve
Back to the top
 
Posted
Rating:
#93551
Avatar

sholzy said

I forgot to mention I created a new banner type and gave it a size of 250 wide and 116 high. I then chose the new banner type when I tried adding a new banner 250 wide and 116 high.
Could you attach the image here so I could try it out? If it was an animated gif we've had a similar issue before with ambiguous sizing. But regardless I may spot something.

Regarding the stack trace, that will happen if there was an upload, as it can't reupload via the link - you'd have to navigate through and repeat. Maybe I'll make the message say that.


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

Actually the stack trace should have been explicit, I just checked that.

Animated gifs with an incorrect frame size could cause this problem. PHP reads the size of the first frame, which may be smaller than the frame size. If not an animated gif, I'd be curious what it would be.

The image size constraint has a config option to turn it off btw.


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

Community saint

My image was a GIF with a transparent background created in GIMP.

After reading your comment about ambiguous sizing I went back and checked each layer's boundary and found them to be different sizes. After correcting this, I tried adding a banner again but still the same errors. I then recreated the GIF by making each layer a separate image and then combining them. This worked without turning off the size constraints.

After repeating the steps, I was able to capture the stack trace. I probably read you telling someone else how to do that but had forgotten it.

Here are the images if you still want to look at them and the stack trace.

Expand: Images Images

Expand: Stack trace Stack trace


Steve
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#93562
Avatar

Tested the first on 9.0.4 and works okay, so my fix this morning worked.

If you don't want to upgrade yet, it's this file:
https://github.com/chrisgraham/ocPortal/blob/v9/sources/banners2.php


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

Community saint

Chris Graham said

Tested the first on 9.0.4 and works okay, so my fix this morning worked.

If you don't want to upgrade yet, it's this file:
https://github.com/chrisgraham/ocPortal/blob/v9/sources/banners2.php
I kept my members off the site for 5 hours last night while upgraded from 8.1.5 to 9.0.3., so I'll upgrade later tonight once I find the missing upgrade button. I guess I'll have to get to the upgrader by the long route, Tools>>ocPortal upgrader.  :lol:


Steve
Back to the top
 
Posted
Rating:
#93564
Avatar

Community saint

sholzy said

… I guess I'll have to get to the upgrader by the long route …



Snap!

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93565
Avatar

Odd, it works for me when I dial my version back. We're all on Chrome too. Did this work for the last upgrade and now not anymore?

Anyways, yeah you can workaround this, you don't need the shortcut button.


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

Community saint

Found it!  :lol:
In Chrome…


In Firefox…


Last edit: by sholzy

Steve
Back to the top
 
Posted
Rating:
#93567
Avatar

Community saint

Chris Graham said

Odd, it works for me when I dial my version back. We're all on Chrome too. Did this work for the last upgrade and now not anymore?


You're asking old men if they can remember that far back?  O_o   I can't remember that far back! :lol:

Steve
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#93568
Avatar

Community saint

Ermmmmmm…., what were we discussing …?

 :lol:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93569
Avatar

Community saint

Chris Graham said

Odd, it works for me when I dial my version back. We're all on Chrome too. Did this work for the last upgrade and now not anymore?
I didn't hesitate much - simply went the Admin route - BUT - this might cause a bit of confusion to newer users. Point to consider!

Took another closer look at the clone site (which isn't being updated as quickly as the live site - GO FIGURE!), and although I am trying to decipher why, I am no wiser - even with what is shown in the attachment.
  • This did not happen for earlier 9.x.x upgrades.
  • it looks like the container for the button is being called, but the button isn't being displayed.
  • Included the 'js' as information although I can't see how it would impact on the display.



Any ideas?

 :o


P.S. Didn't even get a 'sholzy-moment' showing the button in his second attachment!


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93570
Avatar

Thanks guys. I've simplified the HTML a bit, hopefully worked around that browser bug. Weird it doesn't seem to affect all latest Chrome users.


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

Fletch said

Chris Graham said

Odd, it works for me when I dial my version back. We're all on Chrome too. Did this work for the last upgrade and now not anymore?
I didn't hesitate much - simply went the Admin route - BUT - this might cause a bit of confusion to newer users. Point to consider!

Took another closer look at the clone site (which isn't being updated as quickly as the live site - GO FIGURE!), and although I am trying to decipher why, I am no wiser - even with what is shown in the attachment.
  • This did not happen for earlier 9.x.x upgrades.
  • it looks like the container for the button is being called, but the button isn't being displayed.
  • Included the 'js' as information although I can't see how it would impact on the display.



Any ideas?

 :o


P.S. Didn't even get a 'sholzy-moment' showing the button in his second attachment!



Thanks, you beat me to it. It is basically due to the order we're floating stuff, and I've rearranged the order. Did it get fixed?


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

Community saint

Chris Graham said

… Did it get fixed?
Yep!



 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#93573
Avatar

Community saint

Same here.  :thumbs:

Realigned in Firefox too.


Last edit: by sholzy

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

Quick reply   Contract

Your name:
Your message: