Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
kafloo Posted June 18, 2007 Posted June 18, 2007 I getX-Powered-By: PHP/4.4.7Content-type: text/html<br /><b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <b>/var/www/html/tb/rebuildposts.php</b> on line <b>206</b><br /><br /><b>Warning</b>: fgets(): supplied argument is not a valid stream resource in <b>/var/www/html/tb/rebuildposts.php</b> on line <b>208</b><br /><br /><b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <b>/var/www/html/tb/rebuildposts.php</b> on line <b>216</b><br />how do I fix that please
C_ind Posted June 18, 2007 Posted June 18, 2007 I'm going to add in a little last minute feature so you can choose to rebuild posts from the last X days.This will be useful if you've just added a BBCode or you've just changed a BBCode and only want current posts to be updated.Is this feature for the shell tool or the ACP?
Management Matt Posted June 18, 2007 Management Posted June 18, 2007 The shell tool.Muks, can you run other PHP scripts via shell?
chimtroicabien Posted June 18, 2007 Posted June 18, 2007 I getWarning: fwrite(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 206 Warning: fgets(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 208 Warning: fwrite(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 216
kafloo Posted June 18, 2007 Posted June 18, 2007 could you give me another test php script that I could run?I tried the simplest of all php codes<? echo "Hello World"; ?>and named it world.phpand ran$ php -q world.phpHello World:Dit worked
kafloo Posted June 18, 2007 Posted June 18, 2007 I getWarning: fwrite(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 206 Warning: fgets(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 208 Warning: fwrite(): supplied argument is not a valid stream resource in /home/movie4vi/public_html/diendan/rebuildposts.php on line 216thank heavens I'm not alone
kafloo Posted June 18, 2007 Posted June 18, 2007 woot!!!it's running nowI'll post again with the resultsthank you!
kafloo Posted June 18, 2007 Posted June 18, 2007 oopps I spoke too soonnew errorFatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/xxx/sources/classes/bbcode/class_bbcode_core.php</b> on line <b>1077</b>
Logan Posted June 18, 2007 Posted June 18, 2007 I want to rebuild from the beginning, but when I entered 0 it assumed I wanted to start from a specific ID:Do you want to rebuild from the last X days items or start from a specific ID? [0=Rebuild from the beginning, d=Rebuild from last X days, n=Rebuild from an ID]Enter: 0Rebuilding Posts, starting at ID 0Rebuild how many? [Enter how many you'd like to rebuild. Hit enter to rebuild all]:Enter:Edit: Nevermind, I read over it... "hit enter to rebuild all" a little confusing I think, and a bit redundant? Once you enter 0 to rebuild from the beginning it should begin?
Management Matt Posted June 18, 2007 Management Posted June 18, 2007 Well, not really. You might want to rebuild the first 1000 posts. Or you might want to open 4 shell windows and split the rebuild over those 4 windows.Window 1) 0 - 250,000Window 2) 250,000 - 500,000Window 3) 500,000 - 750,000Window 4) 750,000 - 1,000,000.et. cetera...
kafloo Posted June 18, 2007 Posted June 18, 2007 Is it ok to run the script even if your board is still online and users are posting new topics and replies?
Luke Posted June 18, 2007 Posted June 18, 2007 Yes it should be ok. No different than running in AdminCP besides that it's faster and more reliable because it doesn't have to go through the web server.Thank you very much for this Matt :wub:. You are awesome! :DLet us know how it turns out guys. I'll be able to use this later in the week when I get everything else taken care of :blink:Anyways... Gotta run off to work :)
Management Matt Posted June 18, 2007 Management Posted June 18, 2007 Yeah. I did.It will be a bit slower but it'll be OK. The queries are easy queries based on MySQL indexes so they shouldn't cause you any locking issues.The tool runs in batches of 500 transparently so it'll keep updating the max ID as new posts come in.
Baxter_jb Posted June 18, 2007 Posted June 18, 2007 Thanks Matt :D I will give this a go later today :D
mcmcomput3 Posted June 18, 2007 Posted June 18, 2007 on a windows box, running that command gives me an: "Could not determine your IP address" error. Anything that us windows users can do?
bfarber Posted June 19, 2007 Posted June 19, 2007 on a windows box, running that command gives me an: "Could not determine your IP address" error. Anything that us windows users can do?That's not related to Windows specifically (I use Windows) - essentially you don't have an IP address being set.
chimtroicabien Posted June 19, 2007 Posted June 19, 2007 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@domains.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Luke Posted June 19, 2007 Posted June 19, 2007 Are you are trying to run the script though the browser? You need to run it through SSH.
chimtroicabien Posted June 20, 2007 Posted June 20, 2007 Are you are trying to run the script though the browser? You need to run it through SSH.Oh thanks u.
mcmcomput3 Posted June 20, 2007 Posted June 20, 2007 No, on Windows 2k3 server, running the command from CMD. i.e Start > Run > cmd > ENTER then php command
chimtroicabien Posted June 20, 2007 Posted June 20, 2007 Are you are trying to run the script though the browser? You need to run it through SSH.My database have 27k post but to ID 8000 is stop.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.