Hi there,
I'm using from a while myBB and I'm satisfied, but lately I have discoverd that, my attachment are damaged or corrupted, it says! When I try to download a file in attachment, it says that the file is XML Document, not RAR or ZIP... and when I open them I see nothing.... but with repair I can recover the files within, still.
Please, any suggestions, are appreciated!
My website is: universehub.info
Is only the RAR and ZIP files are corrupted or all the attachment types?
Only RAR/ZIP. I use even .SRT or .TXT but they seems to work just fine.
I talked with them, the service provider, but they say that could be the parsing thing doing that.....
Could you provide a test account and a link to a post with rar/zip attachment so we can test this.
The problem is coming about due to one or more of the core files having been edited incorrectly. There is an empty space in either attachment.php or one of the files that are included from the core like config.php, settings.php and others.
Because of the white space, the files being sent out by php are getting appended by this space hence causing the corruption in the header of the compressed files.
Here are a few things I noticed that also point to this being the problem:
- If you download any of the other text only attachments on your board, you'll notice that the text will have moved down a line.
- If you look at the source of your site you'll notice that the first lines are blank.
If you are sure that you or any plugin you are using did not edit any of the files then I would suggest overwriting your files from a fresh download. Otherwise you need to find which file it is that is incorrect (Try the file verification tool in Admincp >> Tools & Maintenance)
EDIT: I had to make a post in a thread using the above account in order to get to the link. You can go ahead and delete that.
I checked some things..... but I didn't find anything!!!
I run file verification, and after overwriting some files, the problem is still there, I see these files in the file Verification:
images/index.html Changed
images/english/postbit_spam.gif Changed
images/english/postbit_quote.gif Changed
images/english/postbit_pm.gif Changed
images/english/pm_reply.gif Changed
images/english/postbit_quickquote.gif Changed
images/english/pm_forward.gif Changed
images/english/postbit_edit.gif Changed
images/english/postbit_multiquote_on.gif Changed
images/english/postbit_delete.gif Changed
images/english/newreply.gif Changed
images/english/newthread.gif Changed
images/english/pm_delete.gif Changed
images/english/closed.gif Changed
images/english/postbit_www.gif Changed
images/english/postbit_email.gif Changed
images/english/postbit_find.gif Changed
images/english/rateuser.gif Changed
images/english/postbit_replyall.gif Changed
images/english/postbit_multiquote.gif Changed
images/english/postbit_profile.gif Changed
memberlist.php Changed
jscripts/editor.js Changed
uploads/index.html Changed
uploads/avatars/index.html Changed
inc/languages/english.php Changed
inc/languages/index.html Changed
inc/languages/english/private.lang.php Changed
inc/languages/english/member.lang.php Changed
inc/languages/english/customhelpdocs.lang.php Changed
inc/languages/english/datahandler_post.lang.php Changed
inc/languages/english/datahandler_event.lang.php Changed
inc/languages/english/syndication.lang.php Changed
inc/languages/english/showthread.lang.php Changed
inc/languages/english/announcements.lang.php Changed
inc/languages/english/forumdisplay.lang.php Changed
inc/languages/english/polls.lang.php Changed
inc/languages/english/newreply.lang.php Changed
inc/languages/english/helpdocs.lang.php Changed
inc/languages/english/managegroup.lang.php Changed
inc/languages/english/misc.lang.php Changed
inc/languages/english/stats.lang.php Changed
inc/languages/english/index.lang.php Changed
inc/languages/english/archive.lang.php Changed
inc/languages/english/calendar.lang.php Changed
inc/languages/english/showteam.lang.php Changed
inc/languages/english/mailhandler.lang.php Changed
inc/languages/english/index.html Changed
inc/languages/english/helpsections.lang.php Changed
inc/languages/english/modcp.lang.php Changed
inc/languages/english/akismet.lang.php Changed
inc/languages/english/reputation.lang.php Changed
inc/languages/english/printthread.lang.php Changed
inc/languages/english/datahandler_pm.lang.php Changed
inc/languages/english/xmlhttp.lang.php Changed
inc/languages/english/messages.lang.php Changed
inc/languages/english/customhelpsections.lang.php Changed
inc/languages/english/datahandler_user.lang.php Changed
inc/languages/english/sendthread.lang.php Changed
inc/languages/english/newthread.lang.php Changed
inc/languages/english/usercpnav.lang.php Changed
inc/languages/english/report.lang.php Changed
inc/languages/english/memberlist.lang.php Changed
inc/languages/english/ratethread.lang.php Changed
inc/languages/english/usercp.lang.php Changed
inc/languages/english/editpost.lang.php Changed
inc/languages/english/warnings.lang.php Changed
inc/languages/english/online.lang.php Changed
inc/languages/english/search.lang.php Changed
inc/languages/english/portal.lang.php Changed
inc/languages/english/moderation.lang.php Changed
inc/languages/english/global.lang.php Changed
inc/languages/english/admin/tools_optimizedb.lang.php Changed
inc/languages/english/admin/style_templates.lang.php Changed
inc/languages/english/admin/home_module_meta.lang.php Changed
inc/languages/english/admin/tools_maillogs.lang.php Changed
inc/languages/english/admin/tools_statistics.lang.php Changed
inc/languages/english/admin/config_badwords.lang.php Changed
inc/languages/english/admin/config_profile_fields.lang.php Changed
inc/languages/english/admin/tools_system_health.lang.php Changed
inc/languages/english/admin/tools_cache.lang.php Changed
inc/languages/english/admin/config_banning.lang.php Changed
inc/languages/english/admin/tools_tasks.lang.php Changed
inc/languages/english/admin/forum_announcements.lang.php Changed
inc/languages/english/admin/home_version_check.lang.php Changed
inc/languages/english/admin/config_warning.lang.php Changed
inc/languages/english/admin/tools_module_meta.lang.php Changed
inc/languages/english/admin/forum_moderation_queue.lang.php Changed
inc/languages/english/admin/forum_management.lang.php Changed
inc/languages/english/admin/tools_mailerrors.lang.php Changed
inc/languages/english/admin/tools_php_info.lang.php Changed
inc/languages/english/admin/user_module_meta.lang.php Changed
inc/languages/english/admin/config_languages.lang.php Changed
inc/languages/english/admin/tools_backupdb.lang.php Changed
inc/languages/english/admin/tools_recount_rebuild.lang.php Changed
inc/languages/english/admin/config_help_documents.lang.php Changed
inc/languages/english/admin/config_plugins.lang.php Changed
inc/languages/english/admin/forum_akismet.lang.php Changed
inc/languages/english/admin/config_module_meta.lang.php Changed
inc/languages/english/admin/index.html Changed
inc/languages/english/admin/tools_warninglog.lang.php Changed
inc/languages/english/admin/user_users.lang.php Changed
inc/languages/english/admin/user_group_promotions.lang.php Changed
inc/languages/english/admin/tools_modlog.lang.php Changed
inc/languages/english/admin/user_titles.lang.php Changed
inc/languages/english/admin/config_settings.lang.php Changed
inc/languages/english/admin/forum_attachments.lang.php Changed
inc/languages/english/admin/user_admin_permissions.lang.php Changed
inc/languages/english/admin/config_attachment_types.lang.php Changed
inc/languages/english/admin/user_groups.lang.php Changed
inc/languages/english/admin/config_calendars.lang.php Changed
inc/languages/english/admin/home_credits.lang.php Changed
inc/languages/english/admin/home_dashboard.lang.php Changed
inc/languages/english/admin/config_mod_tools.lang.php Changed
inc/languages/english/admin/style_themes.lang.php Changed
inc/languages/english/admin/style_module_meta.lang.php Changed
inc/languages/english/admin/user_banning.lang.php Changed
inc/languages/english/admin/config_thread_prefixes.lang.php Changed
inc/languages/english/admin/tools_adminlog.lang.php Changed
inc/languages/english/admin/user_mass_mail.lang.php Changed
inc/languages/english/admin/config_spiders.lang.php Changed
inc/languages/english/admin/home_preferences.lang.php Changed
inc/languages/english/admin/config_smilies.lang.php Changed
inc/languages/english/admin/config_post_icons.lang.php Changed
inc/languages/english/admin/forum_module_meta.lang.php Changed
inc/languages/english/admin/config_mycode.lang.php Changed
inc/languages/english/admin/global.lang.php Changed
inc/languages/english/admin/tools_file_verification.lang.php Changed
I think none of them could be..... anyway please take a look, and thank you for your answers.
P.S.: By "white space" you mean that: ????????????
Settings.php i couldn't change because the fresh one is empty, but I looked there, and I didn't see nothing, even, I wasn't sure what I was looking for.
Thanks, again!
Best regards!
Awaiting your answer!
^ if there are any edits in a php file , which editor you use ?
empty space at the beginning and end of a php file can cause some problems..
I've used the editor of the server.
^ hmm., you may have to check the files on a special editor (eg. notepad++ , ultraedit)