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.


Gallery Issue

Login / Search

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

Fan in action

Problems with adding to personal gallery

Hi
If anyone can shed some light on this stack dump I would be greatful.
I happens when I try to edit (add an image to a child gallery of root)a gallery from the tree….
Cheers

PS running this locally as you can see while its being tested, all other functions appear to be working just fine:-)

Internal error (ocPortal version: 3.1.0, PHP version: 4.3.10, URL:
/ocportal/cms/index.php?page=cms_galleries&type=__ed&uploadi
ng=1)

  File      'c:\program files\easyphp1-8\www\ocportal\sources\global2.php'
Line    '692'
Function    'get_html_trace'
Args    

File    'c:\program files\easyphp1-8\www\ocportal\sources\galleries2.php'
Line    '895'
Function    'clean_exit'
Args    

'Internal error'

File    'c:\program files\easyphp1-8\www\ocportal\cms\pages\modules\cms_gallerie
s.php'
Line    '802'
Function    'make_member_gallery_if_needed'
Args    

'member_4_member_4_root'

File    'c:\program files\easyphp1-8\www\ocportal\sources\aed_module.php'
Line    '814'
Function    'edit_actualisation'
Class    'module_cms_galleries'
Type    '->'
Args    

'1'

File    'c:\program files\easyphp1-8\www\ocportal\sources\aed_module.php'
Line    '159'
Function    '__ed'
Class    'module_cms_galleries'
Type    '->'
Args    

File    'c:\program files\easyphp1-8\www\ocportal\sources\zones.php'
Line    '300'
Function    'run'
Class    'module_cms_galleries'
Type    '->'
Args    

File    'c:\program files\easyphp1-8\www\ocportal\sources\site.php'
Line    '640'
Function    'load_module_page'
Args    

'cms/pages/modules/cms_galleries.php'

'cms_galleries'

File    'c:\program files\easyphp1-8\www\ocportal\sources\site.php'
Line    '510'
Function    'request_page'
Args    

'cms_galleries'

true

File    'c:\program files\easyphp1-8\www\ocportal\cms\index.php'
Line    '42'
Function    'do_site'
Args    
Back to the top
 
Posted
Rating:
#28528
Avatar

Hi,

It looks like you've made the root gallery a member gallery container, and added an image to your member own gallery under it. It looks like you've then edited your own member gallery so it itself is a member gallery container, and then you're trying to add an image to your member gallery container under that.

In other words, you have a member gallery container underneath a member gallery container, which doesn't seem to be what you would want. I'd advise you edit the member_4_root gallery so that it is no longer a member gallery container. If you wish to then create a normal gallery underneath that, you can easily do so by adding that gallery manually.

Regardless, there is a bug here. ocPortal should allow the situation, however weird it is.
To fix the bug (should you want to continue as you are):
change line 887 of sources/galleries.php from:

Code

      $parts=explode('_',$cat);
to:

Code

      $parts=explode('_',$cat,2);


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

Community saint

Small correction due methinks, Chris.

You obviously meant "sources/galleries2.php"

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

Community saint

Why are their 2 galleries files any way?

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28549
Avatar

Because one would be very large. ;)

Back to the top
 
Posted
Rating:
#28552
Avatar

Thanks for the correction Fletch.

To elaborate on what Philip said, there are two files for efficiency reasons. The first one is typically loaded whenever the gallery is used, whilst the second is only loaded when something needs changing to a gallery (much rarer). That convention of x.php and x2.php, or x.php and x_action.php is used a lot.


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

Fan in action

galleries

thank you for your replies.
I have made the appropriate changes as suggested and will let you know if there are any further issues.
All is behaving relatively well at present so fingers crossed that ocportal can fulfil my requirements :-)
Back to the top
 
Posted
Rating:
#28562
Avatar

Community saint

Oh I see thanks.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28566
Avatar

Fan in action

Hi Chris
I am unable to get my galleries correctly established for a member to be able to input images without validation.
Ideally it would be great if once a member has successfully signed up that there is a gallery waiting for them to fill  ;-)

I dont suppose there is a walkthrough somewhere for these?
Looking forward to your reply
Cheers


Last edit: by clunky
Back to the top
 
Posted
Rating:
#28585
Avatar

I am unable to get my galleries correctly established for a member to be able to input images without validation.

You need to either globally set specific permissions for validation bypassing for midrange categories, or you need to use the Permission Tree Editor to override that permission to on for the galleries module alone.

Ideally it would be great if once a member has successfully signed up that there is a gallery waiting for them to fill  ;-)

There isn't quite that, but it's almost the same thing – ocPortal will include galleries that don't exist yet in the "add image" screen. If you point members to that screen (e.g. put cms:galleries:ad onto the menu) then they'll see their galleries listed (assuming you still have at least one of those member gallery containers). The galleries are then created automatically on demand.

I dont suppose there is a walkthrough somewhere for these?

This does appear to be a bit of a sticking point, and we'll get around to making a tutorial specifically for it at some point. Meanwhile it for search the forum for posts by me containing the word galleries/gallery in the topic title, you'll probably find at least one explanation. It's a bit hard for me to regurgitate without really sitting down and thinking it through, because the gallery system is very fluid in how it can be set up.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: