PDA

View Full Version : I don't know if this is a problem...


jimbo
Wed 19th Apr '00, 3:48am
I got this error when trying to import my UBB info:

Warning: Cannot set time limit in safe mode in /big/dom/xbronx_bombers/www/forums/admin/import.php on line 4

Warning: Cannot add more header information - the header was already sent (header information may be added only before any output is generated from the script - check for text or whitespace outside PHP tags, or calls to functions that output text) in global.php on line 15

Warning: Cannot add more header information - the header was already sent (header information may be added only before any output is generated from the script - check for text or whitespace outside PHP tags, or calls to functions that output text) in global.php on line 16

Warning: Cannot add more header information - the header was already sent (header information may be added only before any output is generated from the script - check for text or whitespace outside PHP tags, or calls to functions that output text) in global.php on line 17

===

Please let me know if this is a big deal or not; everything appears to be working, though it just looks really ugly...

John
Wed 19th Apr '00, 4:01am
This is not a problem, but it does look ugly, I agree. From the first error message, I can deduce that you must be running PHP in safe mode.

Because some parts of the import procedure can take a long time, the time limit for execution is increased, to make sure that there are not any time outs. This command cannot be used in safe mode, so it gives the first error message. Once that error message has been written, the script also tries to send the default headers, which tell the browser that the script is thinking. However, since some text (the error) has already been sent, this creates more errors, because headers must be sent before any other text.

Don't worry about it - it is a little unsightly, but is not a serious problem. Everything will still work fine.

John

jimbo
Wed 19th Apr '00, 4:17am
But in the "test" forum that I transferred, I am getting these error messages at the top of the forumdisplay:

Warning: Using scalar variable $icon as an array or object in /big/dom/xbronx_bombers/www/forums/forumdisplay.php on line 159

Warning: Using scalar variable $icon as an array or object in /big/dom/xbronx_bombers/www/forums/forumdisplay.php on line 159

Warning: Using scalar variable $icon as an array or object in /big/dom/xbronx_bombers/www/forums/forumdisplay.php on line 159

Warning: Using scalar variable $icon as an array or object in /big/dom/xbronx_bombers/www/forums/forumdisplay.php on line 159

===

Also, on some of the imported messages, it appears as if the icons didn't come through. I added some on my old board, so I'm thinking that could be the reason, since your board didn't know how to translate "Icon15". But, when you right-click to get the URL of the image, it comes up as "../forums", so there is no link to an image at all. What can be done about this?

[Edited by jimbo on 04-19-2000 at 04:08 PM]

John
Wed 19th Apr '00, 4:31am
Yup - to sort that problem, just add the icons in the vBulletin control panel. There is part of the control panel that allows you to add, edit and delete icons - this should be in the second half of the links.

John

jimbo
Wed 19th Apr '00, 5:09am
Now I'm getting this message while trying to import posts:

Fatal error: Maximum execution time exceeded in /big/dom/xbronx_bombers/www/forums/admin/import.php on line 127

I'm assuming this goes back to the "safe mode" situation. What do you think I should do to remedy this?

James
Wed 19th Apr '00, 5:26am
jimbo,

I'm hardly the expert in php execution times, but I'd try setting the number of threads to import at once to a fairly low number (50 should be ok). It may take a little longer to get all the posts into the database, but at least you won't get the annoying PHP timeout error.

I hope this helps :)

All the best,

James

jimbo
Wed 19th Apr '00, 5:46am
Thanks James. I'm hardly an expert either, but I'll give it a go...