News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Cpcmaniaco

Problems editing a "new" page

Started by Cpcmaniaco, 10:28, 18 August 08

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Cpcmaniaco

Helo Gryzor.

I have a problem when I try to make a new page.

I try to make some new pages from a "red link" of new books I get now and now I can't.

I can edit any old pages to modify like the list of English books but when I try to make the new page of the new links I create I cant, The edit page don't appear.

I need to make any change on my profile perhaps.


And send me an email to contact with you, I have more big manuals for the CPCwiki.


Gryzor

#1
Hello mate,

Wow, critical bug... The new version, while rbinging many enhancements in security, stability and features appears to have some problems. For the time being, for instance, you can't upload any images, which sucks big!

I confirmed that creation of new pages is not possible - do you get a blank page as well? I'll try to get some support...

As for my email: krakout at google's mail. :)

CPCLER

Hi Gryzor

I seem to have similar problem.. When i try to upload some .jpg files.. I simply get a blank page. I recall that this problem also occurred in the past  :-\

/CPCLER

PS. Nice work on maintaining the WIKI :-)

Gryzor

When did you have the problem with images? At first there was a problem indeed - it would give you an extension error; but I think I fixed it - look at the first page, I uploaded a new image. Can you verify if you can upload any images now? If not, then it's a permissions error.

It's a pity - the new version appears to be buggy... :(

I didn't have the time to look into the new page error. It seems it's a PHP error - blank pages are almost always due to PHP errors, but I have to set up the PHP error log to find out what's wrong. I really apologise for the delays...

CPCLER

Hi Gryzor

Sorry.. Still no luck!

When I have encountered the problem? both before and after you updated the software i think (the exact times are in the recent changes log)

How did you solve the problem the last time?

Regards,
CPCLER

Cpcmaniaco

When I have the same problem with the images.

I resize the images, make tests with the images size, now I resize the images bigger than 2000px to 2000px for me is good with these size.

Try it.


Cpcmaniaco

Well, I download your image : Mg_page1.jpg

Without problems and I see that is 3010 x 1600 .

The problem is the 3010 size you need to resize to 2000 or 2100 perhaps.

Why you make a big jpg of 500kb instead a little tiff in 2 colors ( black & white ) and make a pdf with all the pages.

The pdf is easy to download instead to download many big jpgs.



Gryzor

@CPCLERWell; I just tried uploading a picture (from the wedding of a good friend of mine, btw :D ), under a non-admin account, it worked fine. If your files are too big, then it's very possible that PHP craps out. HTTP and forms is really not the best method to upload files (this is not a wiki-specific problem), I'm afraid, so it's probably due to the big size. Can you try emailing the picture to me? my email can be found above.

The way I fixed it, by the way, was to suspend the function of some extensions (this is why youtube videos don't work temporarily, for instance). These will be enabled again as soon as I'm sure about their compatibility.

@CPCManiacoAt some point I had set some size limits, so if you say that smaller ones upload fine, then this is it...

CPCLER

Hi Gryzor

No need to mail.. I have done some experimentation on my own and I think i might have found cause of the error.

Its neither a filesize nor a file permission problem. Somehow the default setting of the new mediawiki version, does not allow images of a certain dimension to be uploaded.

I can successfully upload images i "lower" resolutions, but not the resolution of 1600 in width as i used to in the former version of mediawiki.

The reason why I use this resolution is to make it more easy for others to make high quality OCR of the material...

On my own Wikimedia installation the image size is controlled the following:

http://www.mediawiki.org/wiki/Manual:Image_Administration

http://www.mediawiki.org/wiki/Manual:$wgImageLimits

Regards
CPCLER


Quote from: Gryzor on 06:48, 20 August 08
@CPCLERWell; I just tried uploading a picture (from the wedding of a good friend of mine, btw :D ), under a non-admin account, it worked fine. If your files are too big, then it's very possible that PHP craps out. HTTP and forms is really not the best method to upload files (this is not a wiki-specific problem), I'm afraid, so it's probably due to the big size. Can you try emailing the picture to me? my email can be found above.

The way I fixed it, by the way, was to suspend the function of some extensions (this is why youtube videos don't work temporarily, for instance). These will be enabled again as soon as I'm sure about their compatibility.

@CPCManiacoAt some point I had set some size limits, so if you say that smaller ones upload fine, then this is it...

Gryzor

#9
I've been looking into the PHP parser all evening now, focusing on your images; it's strange, because we've had bigger images in the past with no problem whatsoever.

The error I get (after finally getting PHP to log its errors!) when I try to access one of the image pages (interestingly, the FILE is still accessible!) is this:

PHP fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes) in /var/www/vhosts/cpcwiki.eu/httpdocs/includes/media/Bitmap.php on line 172 . 33554432 is exactly 32KB, incidentally. Line 172 calls:
 $src_image = call_user_func( $loader, $srcPath );

...but I'm at a loss curently; will keep on trying...

Btw, since you have a mediawiki installatio, could you attach /includes/LogEventsList.php ? Need to check something....

Cheers
Gryzor
PS Btw, and thanks for the link, I don't have $wgImageLimits set. So I can't understand why it would bother. The image-related section of LocalSettings.php is:


$wgCheckFileExtensions  = true;
$wgUploadSizeWarning    = "0";
$wgMaxUploadSize        = "10000000";
$wgEnableUploads = true;
$wgUseImageResize = true;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip', 'mp3', 'pdf', 'dsk', '128', 'sng', 'bin', 'rar');
$wgVerifyMimeType = false;
$wgStrictFileExtensions = false;
$wgCheckFileExtensions = false;

Quote from: CPCLER on 16:40, 22 August 08
Hi Gryzor

No need to mail.. I have done some experimentation on my own and I think i might have found cause of the error.

Its neither a filesize nor a file permission problem. Somehow the default setting of the new mediawiki version, does not allow images of a certain dimension to be uploaded.

I can successfully upload images i "lower" resolutions, but not the resolution of 1600 in width as i used to in the former version of mediawiki.

The reason why I use this resolution is to make it more easy for others to make high quality OCR of the material...

On my own Wikimedia installation the image size is controlled the following:

http://www.mediawiki.org/wiki/Manual:Image_Administration

http://www.mediawiki.org/wiki/Manual:$wgImageLimits

Regards
CPCLER
 


Gryzor

New page creation solved!

Working on CPCLer's images now...

Gryzor

Hello guys, can you check if the problem is resolved? I changed some PHP stuff and it now works for me...

The rich text editor will be updated soo, btw, it's next on my to-do list.

Cheers
Gryzor

Powered by SMFPacks Menu Editor Mod