add button does not work. It doesn't even leave the page display, just seems to be in some loop. Keith, I know I have IE and could do it, but no time at the moment. git as of yesterday. workaround: use FF. Klaus

asked 01 Jan '14, 05:11

opto's gravatar image

opto ♦
8234082129
accept rate: 10%

retagged 01 Jan '14, 10:27

caseydk's gravatar image

caseydk ♦♦
717243447

Any chance someone else could test and explore this one? Any additional information would be helpful. :)

(01 Jan '14, 08:06) caseydk ♦♦ caseydk's gravatar image

I just did, in IE, and get the same results Klaus did. The Add button does nothing in Company/Project/Task, except a beautifully spinning wheel that never stops. Works just fine in Chrome.

(01 Jan '14, 10:34) Altstatten Altstatten's gravatar image

I just did a fresh install and tested this with IE 11. I chose "New Item->Project" from the dropdown, inserted a name and saved it. Worked. Only things are that the addedit page looked ugly. All Thing on the right side were below the cancel button.

(02 Jan '14, 00:53) japhwe japhwe's gravatar image

This appears to be fixed in all browsers except maybe IE. Keith is aware.

(02 Jan '14, 08:56) Altstatten Altstatten's gravatar image

Unfortunately I don't have IE to do the testing.. if IE has a Javascript console, could someone open it, then click 'save' and share what happens or error messages appear? Any help is appreciated. :)

(06 Jan '14, 06:25) caseydk ♦♦ caseydk's gravatar image

this is the reason why no addtask in project view: button is not set up correct in IE. code is:\nif (canAdd('tasks')) { $titleBlock->addButton('new task', '?m=tasks&a=addedit&task_project=' . $project_id);\n} but in IE, $project_id is 0 although, after page setup, the project id is ok in IE URL field (here = 1). it seems in IE there is a problem with $project_id = (int) w2PgetParam($_GET, 'project_id', 0); which returns 0 instead of 1 specifically in here: isset($arr[$name]) ? $arr[$name] : $def; because $name is ok, and the $_GET is ok. same problem for add file, event and other places for IE. works ok for FF Klaus
permanent link

answered 17 Jan '14, 11:27

opto's gravatar image

opto ♦
8234082129
accept rate: 10%

edited 17 Jan '14, 11:28

ok, this looks even worse. maybe a PHP specialist knows what to do. I broke up return isset($arr[$name]) ? $arr[$name] : $def; in function w2PgetParam($_GET, 'project_id', 0); so that I could see what is returned. code: $res=isset($arr[$name]) ? $arr[$name] : $def; return $res; $res is ok and set to \"1\", as the debugger shows. This is what is expected from the URL. BUT in view.php, $project_id = (int) w2PgetParam($_GET, 'project_id', 0); is still set to 0. Same happens if I take out the type cast to int. Any ideas? It seems the return 1; does not come through. That is what blocks the add buttons in IE (11 and others)
permanent link

answered 18 Jan '14, 06:37

opto's gravatar image

opto ♦
8234082129
accept rate: 10%

edited 19 Jan '14, 21:16

caseydk's gravatar image

caseydk ♦♦
717243447

Can you run an update from Master? I've applied some changes to simplify that entire mess. You can see the changes here: https://github.com/web2project/web2project/commit/e4277093d45d87eea45a2cf9f33b863ae626778e Please let me know if that changes anything for you.. I have no idea why IE would handle url parameters differently..

(19 Jan '14, 21:18) caseydk ♦♦ caseydk's gravatar image

no change.nWhat happens is that I can get the GET: $tt= $_GET['project_id'];, but as soon as we do the typecast to (int), it converts from the id from the URL to 0.nSo even $project_id = (int) $_GET['project_id']; will not do.

(20 Jan '14, 11:43) opto ♦ opto's gravatar image

can it be a unicode/encoding problem?

(20 Jan '14, 11:52) opto ♦ opto's gravatar image
In IE 11. you ned to reconvert to UTF-8. See some tests I described in http://stackoverflow.com/questions/21245685/getid-is-19-int-getid-is-0-in-internet-explorer-11/21245827#21245827, and then answered my own question: This works: $project_id= (int) mb_convert_encoding($_GET['project_id'], 'UTF-8' ); Klaus
permanent link

answered 20 Jan '14, 12:57

opto's gravatar image

opto ♦
8234082129
accept rate: 10%

answered 20 Jan '14, 12:57

... I don't get it. Is this caused by IE specifically or by PHP on WIndows?

(20 Jan '14, 14:29) caseydk ♦♦ caseydk's gravatar image

FF on Win 7, same PC, works fine.nIs the form sent with a wrong encoding?

(20 Jan '14, 21:26) opto ♦ opto's gravatar image

if our forms are UTF-8, it is consistent that IE delivers GET as UTF-8. Can PHP (int) convert multibyte by definition? Is IE too narrowminded, or the other's too open?

(20 Jan '14, 21:28) opto ♦ opto's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×47
×25
×3
×1

question asked: 01 Jan '14, 05:11

question was seen: 351 times

last updated: 20 Jan '14, 21:28

powered by Bitnami OSQA