dutchsnowden Posted January 5, 2022 Share Posted January 5, 2022 immediately after this, I click begin conversion (I did this many many times and worked perfectly) but now I get this error: Error: count(): Argument #1 ($var) must be of type Countable|array, null given File: /system/Convert/Convert.php Line: 552 on a otherwise page. Nothing else. Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 This is how conf_global.php looks like: Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 if ( $batchBytes > ( $this->_data['max_allowed_packet'] - ( ( $this->_data['max_allowed_packet'] / 100 ) * ( \count( $batch ) * 0.3 ) ) ) ) { /* Remove last row */ $nextBatch = array_pop( $batch ); static::log( "Max packet hit with " . $batchBytes . 'b with ' . \count( $batch ) . ' rows' ); } /* If we have moved the only row from $batch to $nextbatch, then process that now */ if ( \count( $nextBatch ) and ! \count( $batch ) ) { $batch = $nextBatch; $nextBatch = array(); } Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 Can I skip somehow UTF8 conversion and do it later? Convert manually? Link to comment Share on other sites More sharing options...
Stuart Silvester Posted January 5, 2022 Share Posted January 5, 2022 2 minutes ago, dutchsnowden said: Can I skip somehow UTF8 conversion and do it later? Convert manually? No, if you skip UTF8 conversion your entire site will be unreadable. Try changing if ( \count( $nextBatch ) and ! \count( $batch ) ) to if ( \is_array( $nextBatch ) and \count( $nextBatch ) and ! \count( $batch ) ) Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 (edited) No difference, exact same error. (LE: I copied the above text before last edit, once I copied the last version and pasted it inthere, it worked flawlessly) Edited January 5, 2022 by dutchsnowden Link to comment Share on other sites More sharing options...
Stuart Silvester Posted January 5, 2022 Share Posted January 5, 2022 Make sure that your code is the same as mine, I edited it almost immediately after I posted it, but perhaps after you saw it. dutchsnowden 1 Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 if ( \is_array( $nextBatch ) and \count( $nextBatch ) and ! \count( $batch ) ) this Link to comment Share on other sites More sharing options...
Solution Stuart Silvester Posted January 5, 2022 Solution Share Posted January 5, 2022 Your screenshot doesn't show the same issue, did you click convert and continue the UTF8 conversion? SeNioR- and dutchsnowden 1 1 Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 (edited) Keep fingers crossed. AND HUGE THANK YOU! For me it's now or never. I cannot go to sleep until I upgrade. 5 minutes ago, Stuart Silvester said: Your screenshot doesn't show the same issue, did you click convert and continue the UTF8 conversion? Changed as you instructed, hit refresh at convert and it started as normal. Not sure, I did something wrong? I definitely hope not. Edited January 5, 2022 by dutchsnowden SeNioR- 1 Link to comment Share on other sites More sharing options...
IveLeft... Posted January 5, 2022 Share Posted January 5, 2022 Good luck with the live upgrade 👌 SeNioR- and dutchsnowden 1 1 Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 Thanks to all the team for such prompt help! 🤩 You are all rockstars! Just now, Muddy Boots said: Good luck with the live upgrade 👌 Thanks, I need it! Jim M, Thomas P and SeNioR- 3 Link to comment Share on other sites More sharing options...
Randy Calvert Posted January 5, 2022 Share Posted January 5, 2022 Good luck! SeNioR- 1 Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 5, 2022 Author Share Posted January 5, 2022 So far so good! SeNioR- 1 Link to comment Share on other sites More sharing options...
dutchsnowden Posted January 6, 2022 Author Share Posted January 6, 2022 I don't recall upgrade to look like this, however it still goes on. Is this normal? SeNioR- 1 Link to comment Share on other sites More sharing options...
Randy Calvert Posted January 6, 2022 Share Posted January 6, 2022 Yes. On large conversions, that can happen. I believe it’s moved to URL refreshing instead of the in-line refreshing. This could happen with other large reprocessing activities like if you ever need to rebuild the search cache or rebuild all topics etc. You’re still in good shape! Link to comment Share on other sites More sharing options...
Marc Posted January 6, 2022 Share Posted January 6, 2022 Yes, thats normal when an item is taking a long while to run Link to comment Share on other sites More sharing options...
Recommended Posts