Buongiorno a tutti,
gestisco un sito (www.taralluccievin.it -giornale) da novembre 2012 con il csm Joomla e tophost. In passato erano già comparsi alcuni messaggi d'errore in homepage che ho risolto modificando alcune stringhe di codice grazie anche a quanto letto su questo forum. Sono alle prime armi come webmaster, infatti la progettazione del sito l'ha fatta un amico più esperto; io più che altro riesco a muovermi agevolmente nella gestione ordinaria e nella risoluzione dei problemi.
Purtroppo stamattina dopo l'aggiornamento di alcuni componenti è apparso questo messaggio di errore nelle pagine delle rubriche:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/mhd-01/www.taralluccievin.it/htdocs/libraries/joomla/database/database/mysqli.php on line 263
Ho ricercato il file incriminato, ma non so proprio come agire per risolvere il problema e eliminare il messaggio d'errore.
Questa è la parte di codice indicata nel warning:
260 /**
261 * Gets an importer class object.
262 *
263 * @return JDatabaseImporterMySQL An importer object.
264 *
265 * @since 11.1
266 * @throws JDatabaseException
267 */
268 public function getImporter()
269 {
270 // Make sure we have an importer class for this driver.
271 if (!class_exists('JDatabaseImporterMySQL'))
272 {
273 throw new JDatabaseException(JText::_('JLIB_DATABASE_ERROR_MISSING_IMPORTER'));
274 }
275
276 $o = new JDatabaseImporterMySQL;
277 $o->setDbo($this);
278
279 return $o;
280 }
281
282 /**
283 * Get the number of returned rows for the previous executed SQL statement.
284 *
285 * @param resource $cursor An optional database cursor resource to extract the row count from.
286 *
287 * @return integer The number of returned rows.
288 *
289 * @since 11.1
290 */
291 public function getNumRows($cursor = null)
292 {
293 return mysql_num_rows($cursor ? $cursor : $this->cursor);
294 }
Quale può essere il problema e l'eventuale soluzione? Grazie per l'aiuto
gestisco un sito (www.taralluccievin.it -giornale) da novembre 2012 con il csm Joomla e tophost. In passato erano già comparsi alcuni messaggi d'errore in homepage che ho risolto modificando alcune stringhe di codice grazie anche a quanto letto su questo forum. Sono alle prime armi come webmaster, infatti la progettazione del sito l'ha fatta un amico più esperto; io più che altro riesco a muovermi agevolmente nella gestione ordinaria e nella risoluzione dei problemi.
Purtroppo stamattina dopo l'aggiornamento di alcuni componenti è apparso questo messaggio di errore nelle pagine delle rubriche:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/mhd-01/www.taralluccievin.it/htdocs/libraries/joomla/database/database/mysqli.php on line 263
Ho ricercato il file incriminato, ma non so proprio come agire per risolvere il problema e eliminare il messaggio d'errore.
Questa è la parte di codice indicata nel warning:
260 /**
261 * Gets an importer class object.
262 *
263 * @return JDatabaseImporterMySQL An importer object.
264 *
265 * @since 11.1
266 * @throws JDatabaseException
267 */
268 public function getImporter()
269 {
270 // Make sure we have an importer class for this driver.
271 if (!class_exists('JDatabaseImporterMySQL'))
272 {
273 throw new JDatabaseException(JText::_('JLIB_DATABASE_ERROR_MISSING_IMPORTER'));
274 }
275
276 $o = new JDatabaseImporterMySQL;
277 $o->setDbo($this);
278
279 return $o;
280 }
281
282 /**
283 * Get the number of returned rows for the previous executed SQL statement.
284 *
285 * @param resource $cursor An optional database cursor resource to extract the row count from.
286 *
287 * @return integer The number of returned rows.
288 *
289 * @since 11.1
290 */
291 public function getNumRows($cursor = null)
292 {
293 return mysql_num_rows($cursor ? $cursor : $this->cursor);
294 }
Quale può essere il problema e l'eventuale soluzione? Grazie per l'aiuto