Support for SermonSpeaker 3.x is canceled as it is for Joomla 1.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 4.x, which is better anyway.

Download Button does not work

More
06 Jan 2011 12:17 #19 by Michael Speckenbach
At first: Really good Tool to manage your sermons. The best that I found! Thank you for your time to write this nice Component.

Now my problem:
The Download Button ("Predigt herunterladen", because of german language) does not work.
Code:
Errormessage: Fehler 6 (net::ERR_FILE_NOT_FOUND): Die Datei oder das Verzeichnis konnte nicht gefunden werden.
Why does Sermonspeaker don´t find the file? The player is working fine.

Greetings
Michael

Please Log in or Create an account to join the conversation.

More
06 Jan 2011 12:36 #20 by Thomas Hunziker
Since you seem to be german: Machen wir doch auf deutsch weiter.

Ein paar Fragen:
  • Hast du einen Link wo ich das anschauen kann?
  • Benutzt du SermonSpeaker 3.4.2?
  • Wo kriegst du die Fehlermeldung?

Please Log in or Create an account to join the conversation.

More
06 Jan 2011 13:47 - 06 Jan 2011 13:50 #21 by Michael Speckenbach
Ein paar Antworten :-)
  • Link wenn man dort auf Predigt herunterladen klickt
  • ja
  • Die Meldung ist von Browser zu Browser unterschiedlich, weist aber immer darauf hin das er die Datei nicht findet
Code:
Firefox: Die Dateien unter http://www.stadtmissioneickel.de/index.php?option=com_sermonspeaker&task=download&id=10017 konnten nicht gefunden werden.
Last edit: 06 Jan 2011 13:50 by Michael Speckenbach.

Please Log in or Create an account to join the conversation.

More
06 Jan 2011 14:09 - 06 Jan 2011 14:10 #22 by Thomas Hunziker
Nächste Frage :)

Hast du Zugriff auf das Errorlog vom Server?
Weil bis zur Downloadfunktion von SermonSpeaker geht alles.
Du kannst dies testen mit einer ID die nicht existiert, zB:
www.stadtmissioneickel.de/index.php?opti...task=download&id=123 .
Die Fehlermeldung die du hier kriegst ist von SermonSpeaker.

Die Download Funktion von SermonSpeaker ist in /components/com_sermonspeaker/controller.php und sieht etwa so aus:
Code:
function download () { $id = JRequest::getInt('id'); if ($id == ''){ die("<html><body OnLoad=\"javascript: alert('I have no clue what you want to download...');history.back();\" bgcolor=\"#F0F0F0\"></body></html>"); } $database =& JFactory::getDBO(); $query = "SELECT sermon_path FROM #__sermon_sermons WHERE id = ".$id; $database->setQuery($query); $result = $database->loadResult() or die ("<html><body OnLoad=\"javascript: alert('Encountered an error while accessing the database');history.back();\" bgcolor=\"#F0F0F0\"></body></html>"); $result = rtrim($result); if (substr($result,0,7) == "http://"){ // cancel if link goes to an external source die("<html><body OnLoad=\"javascript: alert('This file points to an external source. I can't access it.');history.back();\" bgcolor=\"#F0F0F0\"></body></html>"); } $result = str_replace('\\', '/', $result); // replace \ with / if (substr($result, 0, 1) != '/') { // add a leading slash to the sermonpath if not present. $result = '/'.$result; } $file = JPATH_ROOT.$result; $filename = explode("/", $file); $filename = array_reverse($filename); if(ini_get('zlib.output_compression')) { ini_set('zlib.output_compression', 'Off'); } if (file_exists($file)) { if(ini_get('memory_limit')){ ini_set('memory_limit','-1'); // if present overriding the memory_limit for php so big mp3 files can be downloaded. } header("Pragma: public"); header('Expires: '.gmdate('D, d M Y H:i:s').' GMT'); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: application/mp3"); header('Content-Disposition: attachment; filename="'.$filename[0].'"'); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".@filesize($file)); set_time_limit(0); @readfile($file) OR die('Unable to read file!'); exit; } else { die("<html><body OnLoad=\"javascript: alert('File not found!');history.back();\" bgcolor=\"#F0F0F0\"></body></html>"); } } // end of download
Bis zu dem Teil mit "Encountered an error while accessing the database" geht definitiv schon mal alles. Danach läuft irgendwas schief. Was genau ist schwer zu sagen von hier. Wenns ein Errorlog gibt, würde das schonmal helfen. Ansonsten müssen wir echo statements einbauen in den Code zum sehen bis wohin er kommt ;)
Last edit: 06 Jan 2011 14:10 by .

Please Log in or Create an account to join the conversation.

More
06 Jan 2011 17:52 #23 by Michael Speckenbach
Nein, ganz normales Webhosting...
...leider kein Zugriff auf errorlog :(

Please Log in or Create an account to join the conversation.

More
06 Jan 2011 19:03 - 06 Jan 2011 19:04 #24 by Thomas Hunziker
Ich hab mal die controller.php so angepasst dass der er nicht mehr einen Download initialisiert, dafür aber ne Menge Text ausgibt.

Kannst du die Datei in /components/com_sermonspeaker/controller.php durch die angehängte Datei (zuerst entzippen natürlich!) ersetzen? Mach aber zuerst eine Kopie der Originaldatei damit du nach dem Test wieder zurück kannst :)

Wenn die Datei ersetzt ist, versuch nochmal einen Download und poste (oder maile) mir das Resultat. Vielleicht finden wir so was heraus.
Attachments:
Last edit: 06 Jan 2011 19:04 by .

Please Log in or Create an account to join the conversation.

Time to create page: 0.186 seconds
Powered by Kunena Forum