phpScheduleIt
May 22, 2013, 10:24:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1] 2
  Print  
Author Topic: Problems editing/deleting/creating Announcements  (Read 918 times)
DJWhatGDP
Newbie
*

Karma: 0
Posts: 4


« on: February 10, 2012, 05:29:17 PM »

First of all I want to commend you for an absolutely outstanding program. We are using it to create a custom schedule for an aviation program at a local college as part of our senior project. One minor thing we noticed while testing all of the features was a problem with the announcements. We created our first announcement without issue. However, we cannot edit or delete that original announcement and we cannot create anymore announcements. No error messages appear at all. We've tried it on different browsers and different terminals just to make sure it's not that. It expires tomorrow so i'll see if we can create another one once that one expires, but i was wondering if anyone else had reported this problem. Any help to this would be GREATLY appreciated. Thanks.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: February 13, 2012, 01:20:02 PM »

Is this on the beta version? Also, which language are you using en_us or en_gb?
Logged
DJWhatGDP
Newbie
*

Karma: 0
Posts: 4


« Reply #2 on: February 13, 2012, 04:46:40 PM »

Yes, this is on the beta version and we are using en_us.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: February 14, 2012, 01:08:45 PM »

If you can, I'd suggest updating to the official release. These issues have been fixed.
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #4 on: February 15, 2012, 03:13:03 AM »

Hi! Thx for your time to make this happen! Nice app!

I wanted to add to this thread that i have updated to the official release and i am having the same issues as the thread suggests. I also have problems on the user management page where i can no longer edit/create/delete users.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #5 on: February 15, 2012, 12:19:28 PM »

Meaning it blows up?
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #6 on: February 15, 2012, 08:38:56 PM »

Well.. blows up, i'd prefer to say it doesn't respond to create/edit/delete anymore. i can still navigate the app.

It seems to affect only the user management part. A bit like it does with the announcement where after the first one created, it seems to refuse to create a new one or edit/delete the existing one. But it's not as clear as to when it happens for users.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #7 on: February 16, 2012, 03:19:45 PM »

Very strange. If you have time, can you try reproducing this on the demo?
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #8 on: February 17, 2012, 12:57:57 AM »

So far, it seems to be working fine on the demo.
I can make multiple announcements as well as user creation.
I noticed that the fields don't clear out on your demo when you create a user. And that the list doesn't refresh on when clicking the "add the user" button.

I have my installation accessible online if you want to see how it reacts on my side. I might be mistaken in some configurations or missed some details.

On a side note, i went through the fr_fr.php file and made some tiny corrections/improvements. Would you like it?
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #9 on: February 17, 2012, 06:48:49 PM »

I think i found something that could cause trouble. The ' in the strings are not backslashed so i think the code is confused. This seems to be the problem in my announcements and users.
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #10 on: February 17, 2012, 06:55:22 PM »

For announcements :

        announcementManagement.addAnnouncement(
        '1',
        'C'est le début d'une nouvelle ère!\n\nVoici le système de réservation des ateliers en ligne.\n\nNous aurons besoin d'une besoin d'ajustement. Soyons patients!',
        '14/02/2012',
        '31/05/2012',
        '1'
    );

----

For users :

var user = {
   id: 10,
   first: 'Projet',
   last: 'Fin d'étude',
   isActive: '1',
   username: 'pfe',
   email: 'pfe@espaceverre.qc.ca',
   timezone: 'America/Montreal',
   phone: '',
   organization: '',
   position: ''
   };
   userManagement.addUser(user);

The bold ones should be backslashed. It's in the string, not a separator.
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #11 on: February 17, 2012, 07:09:04 PM »

On the demo, strings have slashes added.

Tested announcements and users.
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #12 on: February 17, 2012, 07:42:05 PM »

I escaped all the conflicting characters and it's all working fine now ; Users and Announcements. I manually escaped them in the db to test if it was the problem and it's all solved just with that.

"Just" need to addcslashes to write to db and stripcslashes to render on the page.  Wink
Logged
DJWhatGDP
Newbie
*

Karma: 0
Posts: 4


« Reply #13 on: February 20, 2012, 11:53:50 PM »

bpdiomus,

Can you send me a copy and paste of your config file on how you fixed the announcements? I'd like to get this fixed as soon as possible. I'd really appreciate that! Thanks.
Logged
bpdiomus
Newbie
*

Karma: 0
Posts: 21


« Reply #14 on: February 21, 2012, 12:09:44 AM »

I'm actually a bit rusted to have made a patch or fix yet. I manually escaped (\) the faulty characters in the database after i found the problem via Firefox showing some complaints by the scripts about missing arguments. When i saw the page source, i identified what cause the problem. Haven't had the guts yet to try to implement in the existing code a fix even though i have an idea of "what" could fix it. Just have some problem with the "how".

Same thing with locales. I feel the problem is there but haven't find a way yet to be able to fix it. Still having a hard time going through the structure of the app.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!