PhotoPlog

Go Back   PhotoPlog > PhotoPlog Lite > Troubleshooting & Problems
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 16 Years ago
 
Thread Tools
  #1  
Old 10-15-2007, 01:00 AM
cam2 cam2 is offline
Green Plog
 
Join Date: Oct 2007
Posts: 6
Gallery: 0
Comments: 0
Default Bad Type - File is of the Wrong MIME Type

I am working with the Plesk control panel.

The root tmp file is writable. Still having this error message.

Sorry, Buck: Bad Type - File is of the Wrong MIME Type
Reply With Quote
  #2  
Old 10-15-2007, 02:12 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Did you try the code from post nine or post eleven in this thread?
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 10-15-2007, 02:39 PM
cam2 cam2 is offline
Green Plog
 
Join Date: Oct 2007
Posts: 6
Gallery: 0
Comments: 0
Default Still not working

I just updated the 2 files with the patches and it is still not working. Same error message. Thanks for your quick response.
Reply With Quote
  #4  
Old 10-15-2007, 05:32 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Undo those changes, as I see now that you are getting bad type and not bad file. Instead, look for the following line in the PhotoPlog upload.php file (appears in two spots) and before the first spot add echo 'A'; exit; and before the second spot add echo 'B'; exit; and see what letter appears on screen when you go to upload a file:
Code:
Content visible to registered users only.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 10-15-2007, 05:49 PM
cam2 cam2 is offline
Green Plog
 
Join Date: Oct 2007
Posts: 6
Gallery: 0
Comments: 0
Default

Code:
Content visible to registered users only.
I'm sorry, I do not know what the first and second spots are? Can you write the code and I can replace the 2 lines with your code? Sorry for the confusion.
Reply With Quote
  #6  
Old 10-15-2007, 05:53 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

The first spot is:
Code:
Content visible to registered users only.
The second spot is:
Code:
Content visible to registered users only.
Both are the same line of code, so before the first one add:
Code:
Content visible to registered users only.
And before the second one add:
Code:
Content visible to registered users only.
And then see what letter appears upon upload.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #7  
Old 10-15-2007, 06:00 PM
cam2 cam2 is offline
Green Plog
 
Join Date: Oct 2007
Posts: 6
Gallery: 0
Comments: 0
Default Got it now

OK, I get the letter B
Reply With Quote
  #8  
Old 10-15-2007, 06:08 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Okay, undo those changes and then find:
Code:
Content visible to registered users only.
And temporarily replace with the following:
Code:
Content visible to registered users only.
What appears on screen now upon upload?
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #9  
Old 10-15-2007, 06:16 PM
cam2 cam2 is offline
Green Plog
 
Join Date: Oct 2007
Posts: 6
Gallery: 0
Comments: 0
Default

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10004 is not allowed to access /var/www/vhosts/huntingne.com/httpdocs/forum/photoplog/images/1 owned by uid 48 in /photoplog/upload.php on line 174

Warning: getimagesize() [function.getimagesize]: Unable to access /var/www/vhosts/huntingne.com/httpdocs/forum/photoplog/images/1/1_Fishing_4-2007_003.jpg in /photoplog/upload.php on line 176

Warning: getimagesize(/var/www/vhosts/huntingne.com/httpdocs/forum/photoplog/images/1/1_Fishing_4-2007_003.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /photoplog/upload.php on line 176
Reply With Quote
  #10  
Old 10-15-2007, 06:36 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Okay, you can undo those changes as well.

PhotoPlog requires safe mode to be off. As currently listed in the vBorg release post...
Code:
Content visible to registered users only.
There is no workaround for when safe mode is on, as PhotoPlog requires safe mode off, though you can take a read through this thread if interested.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad Type - File is of the Wrong MIME Type Roadster1981 Troubleshooting & Problems 1 03-14-2009 12:33 PM
photoplog error- Bad Type - File is of the Wrong MIME Type weedheaven Troubleshooting & Problems 10 02-20-2007 04:21 PM


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.