 |
 |
 |
 |
 |
| Author |
Message |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  | Thank you very much, when I transfer an image transfer that is ok !!!
But when I want a zip file transfer this mesage error
>> Wrong file format! Please select a. Zip or. Jpg file!
Why?
Thanks in advance |
can you post the .zip file you are trying to upload? Like I said, I could upload my own .zip file just fine on your server.
|
|
| Tue Apr 01, 2008 12:25 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
riri
Joined: 21 Aug 2007 Posts: 26
|
|
|
|
No, I do not know ... send,>> Wrong file format! Please select a. Zip or. Jpg file!
Yet another host it works
|
|
| Tue Apr 01, 2008 12:29 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
The only thing else I can think of is a similar problem that marcusmagalhaes ran into. He hadn't initialized .zip as application/zip in his cpanel MIME types.
|
|
| Tue Apr 01, 2008 1:08 am |
|
 |
riri
Joined: 21 Aug 2007 Posts: 26
|
|
|
|
I have not understood, I must activate an option from the server? For the zip? If so what file?
Thanks
|
|
| Tue Apr 01, 2008 8:27 am |
|
 |
droopy
Joined: 31 Mar 2008 Posts: 12
|
|
Is it right ?? |
|
 |  |  |  |  |  | But if i click on "Mygallery Manager" theres only "MyGallery Manager" at the top, but nothing more: So i cant add/delete a Gallery. Whats wrong?
EDIT: I think i know whats wrong. The .htaccess file should be the reason for it, because with other .htaccess files of Cutenews there was the same failure. I try to remove it and report. |
Hello !
I have the same problem exactly as Superdok !! I removed the .htaccess file, but nothing changes
Thank you for your assistance
I am French and does not speak very well English  |
In the plugins/mygallery/ shouldnt be a .htaccess at all. If there is one, delete it. Also try to clear your cache from the CNR menu on top.
If this is not working maybe i should have a look at your site.
Let me know how things going.
* i don't speak French at all, so i rather stick to English  |
Hello !!
I think of having found the problem (but not the solution):
In “mygallery-manager.php” :
 |  |
$mygallery = file_get_contents("http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/plugins/".$mgfoldername."gallery.inc.php".$append); |
So that the function file_get_contents () functions, it is necessary that the option Allow URL Fopen is activated in the php.ini !!
And when I look at my phpinfo, Allow URL Fopen is off .
Is it possible to replace this function, and how?
Thank you for your help
I am French and does not speak very well English 
|
|
| Tue Apr 01, 2008 1:23 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
Re: Is it right ?? |
|
 |  | Hello !!
I think of having found the problem (but not the solution):
In “mygallery-manager.php” :
 |  |
$mygallery = file_get_contents("http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/plugins/".$mgfoldername."gallery.inc.php".$append); |
So that the function file_get_contents () functions, it is necessary that the option Allow URL Fopen is activated in the php.ini !!
And when I look at my phpinfo, Allow URL Fopen is off .
Is it possible to replace this function, and how?
Thank you for your help | Nice catch, droopy! I was wondering if this might come up. I kinda took the easy way out on this one until I was able to get the next version of MyGallery out which would be a whole lot easier to work around this (by re-working structure of MyGallery so some functions are readily available to other scripts besides the gallery script). I'll go ahead and create a re-work of the plugin for now to keep you up and running.
|
|
| Tue Apr 01, 2008 4:35 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 551 Location: Hoogeveen, NL |
|
|
|
Just use the CURL function instead of the fopen function 
_________________
 |
|
| Tue Apr 01, 2008 4:43 pm |
|
 |
riri
Joined: 21 Aug 2007 Posts: 26
|
|
|
|
You will work on an updated plug?
Otherwise if I work by the original script .zip works, but there is no 777 creates the file, and therefore I see no decals transfer it on the server…
Can you tell me what you modify yesterday on the roster
>>
 |  | riri,
Thanks for the PM. I took a look and for whatever reason your server was not changing the permissions of newly created folders using mkdir("new folder", 0777); I added a chmod command after the mkdir command and it works now! I really have no idea why it wasn't throwing an error if it couldn't make the new folder with the correct permissions like it's supposed to (unless you are hosted on a Windows box . . . are you?). Anyway, sorry it didn't work straight away, but now it should work for you! I went ahead and changed the permissions on all your existing folders so they should show up now too! |
Thanks in advance
|
|
| Tue Apr 01, 2008 4:56 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
| Tue Apr 01, 2008 6:12 pm |
|
 |
riri
Joined: 21 Aug 2007 Posts: 26
|
|
|
|
Ok I will wait for the future Updates plug
Thanks
|
|
| Tue Apr 01, 2008 6:37 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  | Ok I will wait for the future Updates plug
Thanks | Oh sorry, I didn't read your full post. Are you saying that .zip files work, but that the files are not showing up? Is this the same server or a different one? If a different one, just copy the gallery.inc.php file I edited yesterday.
Sorry I didn't read. 
|
|
| Tue Apr 01, 2008 7:01 pm |
|
 |
riri
Joined: 21 Aug 2007 Posts: 26
|
|
|
|
Yes the. Zip file is transferred, but there is not chmod 777 on small images ... I use on the same server, the original script that comes from planetluc
>> Plugins, image. Jpg ok but No zip
>> Planetluc script, image. Jpg ok. Zip ok but not ok small image
While on the same server
I am sorry french therefore my English:)
|
|
| Tue Apr 01, 2008 9:10 pm |
|
 |
droopy
Joined: 31 Mar 2008 Posts: 12
|
|
|
|
 |  | Here's the updated 'mygallery-manager.php' file. I ended up just putting the $_GET variables in the URL of CNR itself. The only problem is that it shows your MyGallery admin username and password in the URL at first, but that will only be for people who are already logged into CNR admin, so I think it's fine (for now). Didn't have to use file_get_contents nor any of the cURL options. Let me know if you run into any problems!
|
Thank you very much!
But there is a big problem of posting with updated “mygallery-manager.php”.
I you contact by mp so that you can see
|
|
| Wed Apr 02, 2008 4:26 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  | Yes the. Zip file is transferred, but there is not chmod 777 on small images ... I use on the same server, the original script that comes from planetluc
>> Plugins, image. Jpg ok but No zip
>> Planetluc script, image. Jpg ok. Zip ok but not ok small image
While on the same server
I am sorry french therefore my English:) | riri,
It turns out that the problem was the MIME types for your server were outputting 'application/x-zip-compressed' instead of 'application/zip' so I added a check for this in the MyGallery script and everything works now! I updated both the cutenews MyGallery and the toff MyGallery with my most up-to-date stable version of MyGallery as well (including the chmod after folder creation and verifying the other MIME type for .zip files). Everything should work for you now. If you need to install MyGallery on another server or in a different location, download either of the two MyGallery installations on your current host and use that.
|
|
| Wed Apr 02, 2008 4:46 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
| Wed Apr 02, 2008 5:13 am |
|
 |
|
|
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 vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|