FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Bug report




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
 
Author Message
 Post subject: Confirm/Cancel Buttons on Form Widget
 Post Posted: Tue Apr 17, 2012 7:11 am 
Offline

Joined: Thu Mar 08, 2012 2:55 pm
Posts: 45
I know this issue had been brought up. I intentionally made it a new topic in order to get fast response :) Sorryy ...

Yes .. it seems to be a bug as I have the same problem when clicking on either CONFIRM or CANCEL buttons on Form Widget, nothing happens ... I tried on Mozilla, Opera, IE and Chrome.
After refreshing the browser, this error was displayed:

Fatal error: Class '\Modules\developer\form\Field\Text' not found in D:\wamp\www\cms\diventure\ip_cms\modules\standard\content_management\FieldType.php on line 85


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Tue Apr 17, 2012 9:58 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Check if you have following file on the server:

ip_cms/modules/developer/form/Field/Text.php

Letter case is important!

If not, upload it from downloaded archive.

If it is not the case, let me know if it happens on our demo too.


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Wed Apr 18, 2012 5:37 pm 
Offline

Joined: Thu Mar 08, 2012 2:55 pm
Posts: 45
The attached image is the screenshot of the list of all the files under folder 'Form>Field' in my computer ...
I've tried the demo online in impresspages.org and it's working just fine. No problem at all ...


Attachments:
form_filelist.gif
form_filelist.gif [ 47.11 KiB | Viewed 944 times ]
Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Wed Apr 18, 2012 8:11 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
This error is impossible. Nevertheless the real issue starts when Confirm / Cancel doesn't work. Use firebug or other tool and check what comes back from server after confirm / cancel ajax request.


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Wed Apr 18, 2012 9:25 pm 
Offline

Joined: Thu Mar 08, 2012 2:55 pm
Posts: 45
I've just installed the latest firefox plus firebug add-on and then tried to put on the form but the case is still the same. Confirm/Cancel buttons were still not functioning and after refreshing I got the same error mentioned above. Using IP 1.0.15 were not problem at all.
Below is the screenshot what I got from firebug after clicking on "Save" in IP 2.1 as CONFIRM button was not working. Please let me know what to look at the firebug ...


Attachments:
ip_firefox.gif
ip_firefox.gif [ 83.62 KiB | Viewed 937 times ]
Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Fri Apr 20, 2012 2:37 am 
Offline

Joined: Thu Mar 08, 2012 2:55 pm
Posts: 45
Any idea what's wrong?


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Sat Apr 21, 2012 8:51 am 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
You are on the right way. Could you please do two things.

1. Clear firefox cache: Edit -> Preferences -> Advanced -> Network -> Clear now

2. In firebug you need to look at "net" tab. Load administration page. Open "net" tab. When you press "confirm" or "cancel", new record in this tab should appear. Open "Response" tab of that record. This is what I need to understand why this error happens.

In case this new record does not occur when you press "confirm". Then there should be a JS error in "Console" tab.


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Mon Apr 23, 2012 5:26 am 
Offline

Joined: Thu Mar 08, 2012 2:55 pm
Posts: 45
Hi maskas,
Thanks again for your response. It's probably javascript error because when I installed IP on my hosting, there were no problems at all.
For your info, I'm using Wampserver with Apache 2.2.11, PHP 5.3.0 and MySQl 5.1.36 installed on my computer while the testing browsers are the latest Chrome, Firefox, IE and Opera.

After doing the steps you suggested, I found nothing on 'Errors' tab in Firebug but in tab 'Warnings' you can see on the image attached and the CONFIRM button is still not working ...


Attachments:
firebug_ip.gif
firebug_ip.gif [ 66.27 KiB | Viewed 874 times ]
Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Mon Apr 23, 2012 7:08 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
I don't think these warnings can be the issue.

Did you see NET tab?:
Quote:
2. In firebug you need to look at "net" tab. Load administration page. Open "net" tab. When you press "confirm" or "cancel", new record in this tab should appear. Open "Response" tab of that record. This is what I need to understand why this error happens.


Top 
 Profile  
 
 Post subject: Re: Confirm/Cancel Buttons on Form Widget
 Post Posted: Tue Apr 24, 2012 6:15 pm 
Offline

Joined: Tue Apr 24, 2012 6:04 pm
Posts: 3
Hi,

I can reproduce the problem in XAMPP. It happens because the autoloader checking for "Modules/" not "/Modules/". So I create little bit hack on the loader to remove the leading slash.

When try to load '\Modules\developer\form\Field\Text' it will fail in XAMPP particulary on my test.

Code:
$fileName = str_replace('\\', '/', $name) . '.php';
//find above code and add the following
if($fileName[0] == '/') $fileName = substr($fileName, 1);


then the contact widget will able to confirm / cancel :).

ps: the autoloader.php located on "\ip_cms\includes".


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

Board index » Development » Bug report


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron