Followed instructions to the t and got a 404 in the apps embed area:

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
127.0.0.1
08/08/11 23:15:48
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9

I've included an image.

CommentFileSizeAuthor
#9 mytinytodo_1243468_1.patch.txt20.04 KBfizk
404.png23.97 KBliza

Comments

fizk’s picture

What's the exact address you were trying to view when you get this error?

liza’s picture

that's a localhost set up on a computer (hence the 127.0.0.1).
so it's something like

http://12.0.0.1/NAME-OF-SITE-IN-DEVELOPMENT.com/path-of-page

fizk’s picture

Are you getting this error when viewing the node that has a mytinytodo field? Are these the steps to reproduce? :

1. Install mytinytodo module.
2. Go to a content type and add a myTinyTodo list field.
3. Create a new node of the content type in step #2.
4. View the node created in step #3 and see the 404 error message.

fizk’s picture

I think the problem is the URLs in the javascript code are hardcoded to /mytinytodo/xxx.

In your install it should be http://127.0.0.1/NAME-OF-SITE-IN-DEVELOPMENT.com/mytinytodo

Do you get a blank page when going to http://12.0.0.1/NAME-OF-SITE-IN-DEVELOPMENT.com/mytinytodo/ajax ?

fizk’s picture

I've made some changes to use the base path for all URLs. Try using

http://drupalcode.org/project/mytinytodo.git/snapshot/08ffa246431fe2e031...

and let me know if that works for you.

liza’s picture

yup. that's exactly what i have done.

1) created a content-type called TASK
2) added to it myTinyTodo field
3) created a "task" and left the "Display ToDo list" checked on
4) when i go to the page, i get the actual image you see in the attachment i included previously

liza’s picture

thanks for responding fiszk, but am a bit confused. the following are the install instructions:

Installing myTinyTodo
-----------------------------

1. Copy the Drupal mytinytodo module to your sites/SITENAME/modules directory
or sites/all/modules directory.

2. Enable the module at Administer >> Site building >> Modules.

3. Go to content types (admin/structure/types) -> manage fields -> look for "TODO list" in the field selection box

To add more TODO lists per content type, repeat step 3.

but you're saying myTiny needs to be at the root of the directory?

liza’s picture

yes i get an internal Drupal 404 (takes me to the search page).

btw, am trying to dowload your link but it's not working :\
if you want to just upload a patch, i can work with that.

fizk’s picture

StatusFileSize
new20.04 KB

but you're saying myTiny needs to be at the root of the directory?

The URLs in the Javascript code were pointing to the root, which works when you're not using subsites.

The attached patch should make the module work for subsites as well.

I fixed some other problems with the D6 version. Try using 6.x-1.0-beta3.

fizk’s picture

I fixed some other problems with the D6 version. Try using 6.x-1.0-beta3.

liza’s picture

sorry i didnt get back fast enough. so no patch, just the update? i'll do that this weekend.
and thanks for the follow up :)

fizk’s picture

No problem. Actually, try using 6.x-1.0-beta4 :)

liza’s picture

hey,

i upgraded to beta4 as you suggested and still no luck. here's the piece of code the page is outputting:

 <iframe scrolling="auto" style="overflow-y: auto; width: 100%; height: 400px; border: none;" src="/mytinytodo/page?eid=122&delta=52200"></iframe> 

shouldn't this be pointing to sites/all/modules/mytinytodo/mytinytodo/...? or do you want us to move the mytinytodo jQuery folder to the root directory?

fizk’s picture

Good catch, I've committed a patch:

http://drupalcode.org/project/mytinytodo.git/commitdiff/c1e6579c677b637c...

Try applying that to beta4 and let me know how it goes.

fizk’s picture

Assigned: Unassigned » fizk
Status: Active » Fixed

I'm guessing the last patch fixed the remaining bugs. Let me know if there's anything else.

LochNessMonster’s picture

Version: 6.x-1.0-beta2 » 7.x-1.0-beta6

Hi Fizk,

I've just installed the latest 7.x-1.0-beta6 module on my drupal7 dev site and am getting the same error that Liza had with her 6.x site as follows:

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.56.101
Tue Sep 6 16:49:34 2011
Apache/2.2.17 (Unix) DAV/2 mod_ssl/2.2.17 OpenSSL/1.0.0c PHP/5.3.5 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Steps to create this:
- Installed the module in the drupal sites module folder
- Enabled the module in the in admin module settings.
- Created a new content type and added a field with the todo widget.
- Added a new content page with the new to-do list content type and get the object not found error where the widget should be.

Is this a bug or do I need to modify my setup some how?

Cheers,
LochNessMonster

fizk’s picture

Hi Lock,

Try applying this patch and let me know if it works:

http://drupalcode.org/project/mytinytodo.git/commitdiff/358f36247321e971...

LochNessMonster’s picture

Hi fizk,

I've updated the mytinytodo.module file with the new code. The object not found error has gone away but when I create new content now I just see an empty space on the page where I would expect to see the widget.

The generated page source code snippet is as follows:

<div class="field field-name-field-task-list field-type-mytinytodo-list field-label-above"><div class="field-label">Task List:&nbsp;</div><div class="field-items"><div class="field-item even"><iframe scrolling="auto" style="overflow-y: auto; width: 100%; height: 400px; border: none;" src="/drupal/mytinytodo/page?eid=7&delta=30"></iframe></div></div></div>  </div>

My module is installed in:

/opt/lampp/htdocs/drupal/sites/all/modules/mytinytodo

Any ideas?

Cheers.

LochNessMonster’s picture

Status: Fixed » Active
fizk’s picture

Lock,

I could reproduce the problem and it should be fixed with the latest commit:

http://drupalcode.org/project/mytinytodo.git/commitdiff/7a651d746d5a189f...

Let me know if it works for you.

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this issue isn't fixed.

paulap’s picture

Title: Object not found! » Object not found! - REOPEN

Same Problem with beta 10.

We installed the module as is. Create a new CT with a ToDo field. Create a node.

If we view the node the ToDo Field doesn't display. Instead we get a red message:
- HTTP: 404/Not Found - Some error occured (click for details)

This is the HTML code for the iframe:
iframe scrolling="auto" src="/de/mytinytodo/page?eid=387&delta=57" style="overflow-y: auto; width: 100%; height: 400px; border: none;"

And we use a multilingual environment - with /de/... (at the URL start, German)

Our site-hp is: www.iuk20beta01.com

Thx in advance
Wr paulap

fizk’s picture

Title: Object not found! - REOPEN » Object not found
Priority: Critical » Normal