migration 3.2.8 to 3.2.10

Support für Extensions für phpBB 3.2.x von Entwickler OXPUS
Antworten
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

migration 3.2.8 to 3.2.10

Beitrag von sakkiotto »

I have this problem when upgrading forum.

[phpBB Debug] PHP Warning: in file [ROOT]/ext/oxpus/dlext/phpbb/classes/class_dl_status.php on line 241: A non-numeric value encountered

in example dlext/?cat=63


line 241:

Code: Alles auswählen

		if (($overall_traffic - $remain_traffic <= $dl_file_p[$df_id]['file_size']) && !$config['dl_traffic_off'] && $load_limit == true)
		{
			$status_detail = '<i class="fa fa-info-circle fa-fw dl-blue"></i>';
			$status = '<a href="' . $helper->route('oxpus_dlext_controller', array('view' => 'detail', 'df_id' => $df_id)) . '">' . $status_detail . '</a>';

			if (FOUNDER_TRAFFICS_OFF == true)
			{
				$auth_dl = true;
			}
			else
			{
				$auth_dl = 0;
			}
		}
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: migration 3.2.8 to 3.2.10

Beitrag von oxpus »

Find in the named file the row

Code: Alles auswählen

		if (($overall_traffic - $remain_traffic <= $dl_file_p[$df_id]['file_size']) && !$config['dl_traffic_off'] && $load_limit == true)
and replace it with

Code: Alles auswählen

		if (($overall_traffic - (int) $remain_traffic <= $dl_file_p[$df_id]['file_size']) && !$config['dl_traffic_off'] && $load_limit == true)

But I recommend updating to the last version 8.1.5, as the 7th version of the extension is not longer supported.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten