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.


Bug with Keywords and Precise Description entry in 4.1.10

Login / Search

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

Fan in action

Keywords and Precise Description entries not saved on first entry but work on second.

Hi,

Came across what I think is a definite bug. I'm entering items into a custom catalogue and every time I enter Keywords and a Precise Description for the first time they are not saved. Re-editing the entry and entering them again leads them to being saved. Not working on both Chrome and FF if that makes any difference in this case. Any suggestions appreciated as it's fairly awkward having to enter the items twice continuously.

Thanks,

Andrew
Back to the top
 
Posted
Rating:
#51652
Avatar

Hi,

I can confirm this is a bug. It's happening just for catalogues. Fix attached.

Attachment
sources/catalogues2.php
» Download: catalogues2.php (26 Kb, 131 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:
#53103
Avatar

Fan in action

Keywords and Precise Description Bug also possibly in Calendar

Hi Chris,

I'm setting up the events section of our site (writing4all.ie). I'm having the same problem with the keywords as in the original bug reported here i.e. entering descriptions and then they are wiping themselves. Any idea where to go about fixing this?

Also in the calendar side results list I am getting items this week for Monday returning after Wednesday which seems a bit odd. Has anyone come across a similar problem?

Still running 4.10…system telling me to update to 4.11 but I need to get about four or 5 reasonably large bits working before I nervously upgrade

Any help appreciated,

a
Back to the top
 
Posted
Rating:
#53105
Avatar

Hi,

Well, there's a fix above you could try. I can't really individually step through manually applying the fix except via our commercial support.

W.r.t., The calendar problem, my first feeling is either an event is set to recur, or there's something happening with the timezones that are causing it to shift. Screenshots (how it shows, the view screen for this event, and the edit screen for this event) would help us.


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

Fan in action

Hi Chris,

I'm not sure if I'm understanding you correctly. I think the fix above is for a problem in catalogues2.php. I'm guessing that there would be something similar you could fix in calendar2.php if I knew where to fix it or what you did to fix the first problem.

Are you saying that fixing the broken "description" implementation in calendar entries (possibly located in calendar2.php) is only available via paid support?

If this is already fixed in a higher version then let me know. I'm also happy to look around calendar2.php myself and report back a possible fix if you let me know roughly what you changed in the catalogues file to fix the previous problem.

It seems to me that this is a problem that more than one person will have and an actual bug in the software so it seems surprising you want to move it to paid support?

With the description of the other problem I was having, you're correct, I need to document it much more thoroughly, suspect it's something to do with recurrance alright but could just be me messing it up so investigating further. Will post something more detailed if I get to the bottom of it.

Thanks,

Andrew
Back to the top
 
Posted
Rating:
#53127
Avatar

Hi,

Whoops, sorry I completely misread your post, and didn't notice you also were the original poster. Sorry about that.
Yes, this is a similar but different bug. A fix is attached for sources/calendar2.php.
Attachment
» Download: calendar2.php (11 Kb, 131 downloads so far)


It seems to me that this is a problem that more than one person will have and an actual bug in the software so it seems surprising you want to move it to paid support?

Yeah, sorry- I thought you were a new poster asking me to apply the bug fix manually for them because you didn't want to upgrade. My bad!


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

Fan in action

Hi Chris,

Thanks a million…will give it a bash. On a fairly random unrelated topic, I am having my first tentative crack at getting into the "create your own module" example in the code book. All looking good so far, lightbulbs going off all over the place and well described in the PDF.

Kudos again on a great system. Takes a bit of getting used to but I'm suddenly seeing all sorts of ways I could get some nice custom functionality out of this.

Cheerio,

A
Back to the top
 
Posted
Rating:
#53170
Avatar

Fan in action

side_calendar.php results order problem with listings block

Hi Chris,

I've done some more investigating with the problem I mentioned before with the calendar. Let me explain what I want to do first:

Aim: List of events for 40 days into future ordered by nearest events first.

I'm trying to use the side calendar block to achieve this. The problem I'm having is that it doesn't look as if results are being sorted in any order.

At the moment I have three events to test:

Event_a - 10th August
Event_b - 12th August
Event_c - 22nd August

These are being returned in this order:

Event_b
Event_c
Event_a

None of the events are set to recurring. They all have the same category and priority. All display correctly on their individual calendar pages.

I've checked in the database and the order above is the order they are listed in there which leads me think there is no sorting being applied anywhere. There's nothing I can see in side_calendar.php doing it. That seems to call function calendar_matches() in calendar-php which looks as if it is doing various clever things to check for permissions/recurrence etc. but I don't know if this is trying to sort by date or not.

So…I guess my question is, should I expect to see the results in the side calendar listing block returned sorted by date?

Thinking about trying to put in a hacky bash at sorting the $days array in side_calendar.php to get what I want but if there was an easier way around that I would love to take it.

Hope that makes sense. Any help/insights appreciated.

Cheers,

Andrew
Back to the top
 
Posted
Rating:
#53180
Avatar

Confirmed, fix attached.

Attachment
» Download: side_calendar.php (8 Kb, 142 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:
#53181
Avatar

Fan in action

Hi Chris,

Thanks for that. The $content variable is missing in the fix but once I sorted that it seems to be working on the sort.

Cheers,

a
Back to the top
 
Posted
Rating:
#53182
Avatar

There is no $content variable, I think you're getting mixed up with changes you're making yourself.


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

Fan in action

ahem….oops :)

Sorry, you're right…that was something I totally forgot I put in there.

a
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: