PDA

View Full Version : RC2 backup & User problem


seanspeng
29th of February 2004 (Sun), 14:39
First Issue:

I was trying to restore from the "database backup set", and I got this error message:

Notice: ob_end_flush() failed to delete and flush buffer. No buffer to delete or flush. in /gallery/..../backup/index.php on line 1752


Second Issue:

I have a slideshow addon to attachment mod for phpbb2. After EE upgrade, the attachmend mod slideshow page gives me errors related to user variable. I don't know if this is related to EE upgrade, but I would like to ask if this is possible cause.

Warning: asort() expects parameter 1 to be array, string given in /www/html/forum/slideshow.php on line 169

Warning: Variable passed to each() is not an array or object in //www/html/forum/slideshow.php on line 171

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /html/forum/includes/page_header.php on line 591

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /www/html/forum/includes/page_header.php on line 593

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /www/html/forum/includes/page_header.php on line 595

Below is line 168 to line 171 as indicated in the above file.

$u = array( ($malbum) ? -999 : $this['user_id'] );
asort ($user);
@reset ($user);
while (list($key, $text) = each($user))

Pekka, thank you very much in advance for helping me.

Pekka
29th of February 2004 (Sun), 15:37
First Issue:

I was trying to restore from the "database backup set", and I got this error message:

Notice: ob_end_flush() failed to delete and flush buffer. No buffer to delete or flush. in /gallery/..../backup/index.php on line 1752

I cannot reproduce this problem. If you can, PM me details what you dud and in what order. That should not affect backup/restore. You can suppress the error message by replacing that line:

ob_end_flush();

with

@ob_end_flush();


Second Issue:

I have a slideshow addon to attachment mod for phpbb2. After EE upgrade, the attachmend mod slideshow page gives me errors related to user variable. I don't know if this is related to EE upgrade, but I would like to ask if this is possible cause.

Warning: asort() expects parameter 1 to be array, string given in /www/html/forum/slideshow.php on line 169

Warning: Variable passed to each() is not an array or object in //www/html/forum/slideshow.php on line 171

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /html/forum/includes/page_header.php on line 591

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /www/html/forum/includes/page_header.php on line 593

Warning: Cannot add header information - headers already sent by (output started at /www/html/forum/slideshow.php:169) in /www/html/forum/includes/page_header.php on line 595

Below is line 168 to line 171 as indicated in the above file.

$u = array( ($malbum) ? -999 : $this['user_id'] );
asort ($user);
@reset ($user);
while (list($key, $text) = each($user))

Pekka, thank you very much in advance for helping me.

Well, debugging other applications is out of my scope, but it seems that the app you insert to header.php uses http headers to refresh itself, and that makes the errors happen because headers must be sent before anything is output to a page. Errors cumulate, so other errors you got are related to each other.

EE does not affect any other PHP app on server.

JimmyB
20th of July 2004 (Tue), 16:19
seanspeng

I had a similar problem after upgrading to EE1.5_RC4 from version 1.3_RC.

After much heartache and faffing around I fixed the problem by altering my 'php.ini' file from the standard 'php.ini-dist' to the 'php.ini-recommended' version that came with my PHP distribution.

I hope this helps

Jimmy

seanspeng
30th of July 2004 (Fri), 22:03
Jimmy,

Thanks for sharing the solution with us. Could you please be more specific on the steps? I don't understand what to do.

Thank you!

Shouchen

JimmyB
2nd of August 2004 (Mon), 14:25
Shouchen

I don't know the particular circumstances of your website but let me just explain mine... I am running a red hat linux machine with Apache v2.0.47 and PHP 4.3.8

I have downloaded and configured the PHP package myself from www.php.net

When following the setup documentation it is recommended to copy the supplied 'php.ini-dist' file to use as the 'php.ini' file (the file which PHP uses to configure itself). I was using this setup before I upgraded from EE1.3_RC and everything was working fine with ExhibitEngine.

When I upgraded to EE1.5_RC4 I kept getting similar errors to the ones you seem to be having.

ob_end_flush()

headers already sent by

To fix them I tried numerous things before I scrapped my existing 'php.ini' file and overwrote it with another file that was supplied with the php software, 'php.ini-recommended'. Now everything works fine.

I guess when I upgraded to the latest version of ExhibitEngine Pekka had changed some of the code so that it no longer functions correctly with PHP (if it is configured in a certain way). I am no programmer but I think specifically it has something to do with the way output variables are processed.

Now I don't know whether you are running your own server or if you are relying on some webhosting service. If you are running your own server you should be able to find and change the php.ini file directly. If you are using a second party to host your website you may need to ask them to look at the PHP configuration.

This "solution" comes with no guarantees. All I can say is it worked for me.

Good Luck

Jimmy