Drupal 4.7.6 mysql 4.0.26 PHP Version 4.4.0 OSTYPE linux-gnu.
Everything was working until this morning but now when I try to attach a file to a page (which I have been doing) I get a pop up with the following
[true,”\x3ctable\x3e\n\x3cthead\x3e\x3cth\x3eDelete\x3c/th\x3e\x3cthx3eList\x3c/th\x3e\x3cth \x3eDiscription\x3c/th\x3e\x3cth\x3eSize\x3c/th\x3e\x3c/tr\x3e\x3c/thread\x3e\n \x3ctbody\x3e\n\x3ctr class=\”odd”\”\x3e\x3ctd\x3e\x3cdiv class=\”form-item\”\x3e\n \x3cinput type=\”checkbox\”name=\”edit[files][upload_0][remove]\”id=\”edit-files-upload_0-remove\”value=\”1\” class=\”form-checkbox\”/\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\”form-item\”\x3e\n \x3cinput type=\”checkbox\” name=\”edit[files][upload_0][list]\” id=\”edit-files-upload_0-list\” value=\”1\” checked=\”checked\” class=\”form-checkbox\” /\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\”form-item\”\x3e\n \x3cinput type=\”text\ maxlength=\”256\” name=\”edit[files][upload_0][description]\” id=\”edit-files-upload_0-description\” size=\”60\” value=\”2005eventapp.doc\” class=\”form-text\” /\x3e\n \x3cdiv class=\”description\”\x3e\x3csmall\x3ehttp://mysite/members/system/files/2005eventapp.doc\x3c/ small\x3e\x3c/div\x3e\n\x3c/divx3e\n\x3c/td\x3e\x3ctd\x3e19KB\x3c/td\x3e \x3c/tr\x3e\n\x3c/tbody\x3ex3c/table\x3e\n\x3cdiv id=\”attach-hide\”\x3e\x3cdiv class=\”form-item\”\x3e\n \x3clabel for=\”edit-upload\”\x3eAttach new file: \x3c/label\x3e\n \x3cinpute type=\”file\” name=\”edit[upload]\” class=\”form-file\” id=\”edit-upload\” size=\”40\” /\x3e\n\\n\x3c/div\x3e\n\x3cinput type=\”submit\” name=\”attach\” value=\”Attach\” id=\”attach\” class=\”form-submit\” /\x3e\n\x3c/div\x3e\x3cinput type=\”hidden\” name=\”edit[attach]\” id=\”edit-attach\” value=\http://mysite.org/members/upload/js\ class=\”upload\” /\x3e\n\x3cinput type=\”hidden\” name=\”edit[vid]\” id=\”edit-vid\” value=\”23\” /\x3e\n”
There are no errors in the watchdog.
If I click OK in the pop up and continue to submit that the file IS attached.
After clicking OK so the error pop up goes away and then clicking submit to create the page I find that when I go back to edit the page there are two copies of the file attached. Only one of the attached files has a check in the "view" check box. The first listing of the file has no boxes checked.

CommentFileSizeAuthor
#20 Error1_0.html1.55 KBDarrell
#19 Error1.html1.54 KBDarrell

Comments

Darrell’s picture

In FireFox 2.0.0.3 if I click OK in the pop up and continue to submit that the file IS attached.
After clicking OK so the error pop up goes away and then clicking submit to create the page I find that when I go back to edit the page there are two copies of the file attached. Only one of the attached files has a check in the "view" check box. The first listing of the file has no boxes checked.

In IE Explorer I get the error pop up but when I click OK I get another pop up from IE that says un specified error and I have to CTRL-ALT-DEL and shut IE down to get away from it. The next time I start IE and try to attach a file I just get the lock up with the unspecified error and no other messages.

Darrell’s picture

Just discovered that if I browse to the file in the file attach area and "open" the file but do NOT click the attach button the file gets attached when I click submit. There are no errors.

Darrell’s picture

Does anyone look at these posts??????

Darrell’s picture

I have searched and read about 100 pages and no help.
How do I get help?
What more do you need?

Darrell’s picture

Priority: Normal » Critical

NINE DAYS and still no response.
Thanks for the help.

Stefan Nagtegaal’s picture

Priority: Critical » Normal

This is NOT critical!

Darrell’s picture

Thats a big help!

Stefan Nagtegaal’s picture

Does this happen everytime when you upload a file?
Or did this happen on one occasion?

With one particular file type? Or with every filetype (pdf/png/doc/jpg/txt)?

Stefan

Stefan Nagtegaal’s picture

Do you have a stock drupal 4.7.6 or did you installed modules out of the contrib repository?

Stefan

Darrell’s picture

This happens every time I click the attach button with pdf, zip, exe, txt files. The file is attached with no error if I do not click attach and just click submit.
I have the following contrib modules which I turned off and still had the problem.

autotimezone, chatroom, image, image_assist, mail, path_access, pathauto, poormanscron, profileplus, taxonomy_access, taxonomy_block, taxonomy_menu, user_search, userlists & views.

Is it possible that I need to physically remove them from the modules folder and not just turn them off?

Stefan Nagtegaal’s picture

Yeah, try to remove them completely and report back what happens when you upload a file...

So, if i understand you well, you do NOT get this behaviour when you attach an image file like png/jpg?

Stefan

Darrell’s picture

Sorry I was not clear. I didn't try photos. I usually use the image modules for that.
I will try removing the modules.

Darrell’s picture

Removing the modules didn't help but now after putting them back a guest causes the following error.

user warning: Table 'machin_dru1.path_access' doesn't exist query: SELECT pages, visibility FROM path_access pa INNER JOIN role r ON r.rid = pa.rid WHERE r.name IN ('anonymous user') in /hsphere/local/home/machin/mysite.com/member/includes/database.mysql.inc on line 121.

Darrell’s picture

Fixed the last error. I had to manually re install the data base table. Evidently it was removed when I disabled and deleted path_access.
This is not the first time that I have had to manually install data base tables since drupal went to install files. Removing modules should also remove the flag that prevents the install file from workinf on a re install.

Darrell’s picture

Fixed the last error. I had to manually re install the data base table. Evidently it was removed when I disabled and deleted path_access.
This is not the first time that I have had to manually install data base tables since drupal went to install files. Removing modules should also remove the flag that prevents the install file from working on a re install.

Darrell’s picture

OK, lets see if I get any help now. I converted the ESCaped characters in the error message and made the following more readable error message.


[true,<table>
<thead><th>Delete</th><th>List</th><th>Discription</th><th>Size</th></tr></thread>
<tbody>
<tr class="odd"><td><div class="form-item">
<input-type="checkbox"name="edit[files][upload_0"value="1" class="form-checkbox">
<div>
</td><td><div class="form-item">
<input type="checkbox" name="edit[files][upload_0][list]" id="edit-files-upload_0-list" value="1" checked="checked" class="form-checkbox" />
</div>
</td><td><div class="form-item">
<input type="text maxlength="256" name="edit[files][upload_0][description]" id="edit-files-upload_0-description" size="60" value="2005eventapp.doc" class="form-text">
<div class="description><small>http://mysite/members/system/files/2005eventapp.doc</ small></div>
</div>
</td><td>19KB</td> </tr>
</tbody></table>
<div id="attach-hide"><div class="form-item">
<label for="edit-upload">Attach new file: </label>
<input type="file" name="edit[upload]" class="form-file" id="edit-upload" size="40">

</div>
<input type="submit" name="attach" value="Attach" id="attach" class="form-submit">
</div><input type="hidden" name="edit[attach]" id="edit-attach" value=http://mysite.org/members/upload.js class="upload">
<input type="hidden" name="edit[vid]" id="edit-vid" value="23" />
]

Does this help at all??????

Darrell’s picture

I made a typo in the above post.
http://mysite.org/members/upload.js should have been
http://mysite.org/members/upload/js close to the bottom.
Still, is something being called from that address? Because there is no upload folder or a js folder.

Darrell’s picture

Just a test to see what the above code looks like in PHP. Don't know if it will work.

[true,<table>
<thead><th>Delete</th><th>List</th><th>Discription</th><th>Size</th></tr></thread>
<tbody>
<tr class="odd"><td><div class="form-item">
<input-type="checkbox"name="edit[files][upload_0"value="1" class="form-checkbox">
<div>
</td><td><div class="form-item">
<input type="checkbox" name="edit[files][upload_0][list]" id="edit-files-upload_0-list" value="1" checked="checked" class="form-checkbox"/>
</div>
</td><td><div class="form-item">
<input type="text maxlength="256" name="edit[files][upload_0][description]" id="edit-files-upload_0-description" size="60" value="2005eventapp.doc" class="form-text">
<div class="description><small>"http://mysite/members/system/files/2005eventapp.doc"</small></div>
</div>
</td><td>19KB</td> </tr>
</tbody></table>
<div id="attach-hide"><div class="form-item">
<label for="edit-upload">Attach new file: </label>
<input type="file" name="edit[upload]" class="form-file" id="edit-upload" size="40">

</div>
<input type="submit" name="attach" value="Attach" id="attach" class="form-submit">
</div><input type="hidden" name="edit[attach]" id="edit-attach" value="http://mysite.org/members/upload/js" class="upload">
<input type="hidden" name="edit[vid]" id="edit-vid" value="23" />
]

I am seeing what look like errors in the error message. There is an opening <thead> with a closing </thread> and a closing </tr> without an opening <tr>.

I could really use some help here.

Darrell’s picture

StatusFileSize
new1.54 KB

The puzzle gets deeper and deeper.
I put the above cleaned up error in a html wrapper and got an upload entry form.
I attached the html file so you can see what I mean.

Darrell’s picture

StatusFileSize
new1.55 KB

I went back and re created the error and re entered the code in the html file just to make sure that I had no typos. I found a couple in that there is no <thread> they are both <thead> and I found the missing tr.
The browse button even works.
So I am back to where does the error come from and why is it there?
If I click the OK box in the error and then click submit there are two instances of the file loaded into the page using FireFox 2.0.0.3. In IE Explorer I get the undefined error pop up and I have to use CTRL-ALT-DEL and shut IE down to get out of the repeating undefined error loop.
If you can't help, at least point me in a direction to look. I know I was told that this is not critical but it sure is messing with me.

kaerast’s picture

At a rough guess, it's something to do with Mime types on your Apache server. I know very little about Apache though, so can't really help.

You may get a better response by asking on the IRC support channel, irc.freenode.net/#drupal-support.

Also, is there a reason you are using Drupal 4.7.6? If not then you should think about upgrading to 5.1, it's unlikely to solve this issue but is worth doing.

Darrell’s picture

Still using 4.7.6 because of the usual problem that modules I am using have not been updated to the latest drupal version.
Thank you for pointing me in a new direction.

Stefan Nagtegaal’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still a problem in Drupal 6? We overhauled a lot of the file functions. Would you care to test?

Darrell’s picture

I am still using 4.7.6 because I am using the following modules and they are not all available for the 5.x build let alone the 6.x build.
acidfree, autotimezone, block, chatroom, comment ,filemanager, filter, flexinode, help, image
image_attach, image_gallery, img_assist, legacy, locale, mail, menu, node, page, path, path_access
pathauto, poormanscron, profile, profileplus, search, sitemap, story, subscriptions, system
taxonomy, taxonomy_access, taxonomy_block, taxonomy_context, taxonomy_menu, upload
urlfilter, user, user_search, userlists, views and watchdog.
I am not planning to update drupal until the needed modules are available. In the past I have updated drupal and lost modules that I was using and then had to re do my site loosing some of what I had.

Crell’s picture

You may want to recheck some of those. Most of those I know I've used in Drupal 5, or are core modules anyway. Also note that story.module no longer exists. It was absorbed into the node.module in core in Drupal 5, as was page.module.

For better or worse, some rejiggering of which modules do what is a natural part of upgrading from one version to another. Sometimes the problem an older module was intended to solve no longer exists, or has been replaced with some other mechanism.

Crell’s picture

Status: Postponed (maintainer needs more info) » Fixed

No response from user.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.