Written Communications (Briefmodul)

Hast du Probleme oder Fragen bei der Einrichtung bestimmter Plugins ? Diese kannst du hier loswerden.
Igsterman
Beiträge: 22
Registriert: 22. Dez 2013, 15:54

Re: Written Communications (Briefmodul)

Beitrag von Igsterman »

Hallo ...

bei mir hat die neue Datei noch nicht geholfen ... ich habe noch den Fehler von Zeile 39 ...

Warning: require_once(classes/adm_Rolemembers.php) [function.require-once]: failed to open stream: No such file or directory in /kunden/184849_85551/admidio/adm_plugins/written_communications/written_communications_functions.php on line 39

Fatal error: require_once() [function.require]: Failed opening required 'classes/adm_Rolemembers.php' (include_path='.:/usr/local/lib/php') in /kunden/184849_85551/admidio/adm_plugins/written_communications/written_communications_functions.php on line 39
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Bitte diese probieren.
Jetzt sollte es passen

VG Thomas
Dateianhänge
written_communications_functions.zip
(3.9 KiB) 340-mal heruntergeladen
Igsterman
Beiträge: 22
Registriert: 22. Dez 2013, 15:54

Re: Written Communications (Briefmodul)

Beitrag von Igsterman »

jetzt geht es ein Stück weiter ... der nächste Fehler ist jetzt Zeile 70:

Fatal error: Class 'ZipArchive' not found in /kunden/184849_85551/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 70
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Wann tritt der Fehler auf, oder anders gefragt waren alle Felder gefüllt?
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

ok, rufe mal bitte die phpinfo() auf und überprüfe ob zip Unterstützung aktiviert ist

--enable-zip configure

So wie es aussieht hat dein Provider die Extension nicht installiert.

VG Thomas
Igsterman
Beiträge: 22
Registriert: 22. Dez 2013, 15:54

Re: Written Communications (Briefmodul)

Beitrag von Igsterman »

so . Habe die neuese PHP Version bei meinem Provider ausgewählt ... jetzt funktioniert es !!!

SUPER !! Herzlichen Dank !!!
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

ok danke fürs Feedback.

Ich werde gleich ein Bugfix Release wegen dem Fehler in der Datei machen.

Beste Grüsse Thomas
Treger
Beiträge: 7
Registriert: 17. Apr 2014, 17:55

Re: Written Communications (Briefmodul)

Beitrag von Treger »

Hm.

Ich habe über den Provider PHP Version 5.2.17-nmm2 laufen

Zip enabled
Extension Version $Id: php_zip.c 305848 2010-11-30 11:04:06Z pajoye $
Zip version 1.8.11
Libzip version 0.9.0

und trotzdem kommt der folgende Fehler:
Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in /www/htdocs/w00b3ffc/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 73

Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in /www/htdocs/w00b3ffc/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 74

Fatal error: Uncaught exception 'Exception' with message 'Could not open for writing.' in /www/htdocs/w00b3ffc/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php:75 Stack trace: #0 /www/htdocs/w00b3ffc/admidio/adm_plugins/written_communications/written_communications_functions.php(202): PHPWord_Writer_Word2007->save(false) #1 {main} thrown in /www/htdocs/w00b3ffc/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 75
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Kannst du mal eine höhere php Version auswählen?
Treger
Beiträge: 7
Registriert: 17. Apr 2014, 17:55

Re: Written Communications (Briefmodul)

Beitrag von Treger »

Bekomme div. Fehler (.htaccess mit php 5.5)
Warning: session_start(): open(/tmp/sess_7e2d8f0e4fd29729dad2927c208c8939, O_RDWR) failed: Permission denied (13) in /www/htdocs/w00b3ffc/admidio/adm_program/system/common.php on line 103

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w00b3ffc/admidio/adm_program/system/common.php:103) in /www/htdocs/w00b3ffc/admidio/adm_program/system/common.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00b3ffc/admidio/adm_program/system/common.php:103) in /www/htdocs/w00b3ffc/admidio/adm_program/system/overall_header.php on line 54


Warning: Unknown: open(/tmp/sess_7e2d8f0e4fd29729dad2927c208c8939, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Du hast ein Problem mit Zugriffsrechten
Igsterman
Beiträge: 22
Registriert: 22. Dez 2013, 15:54

Re: Written Communications (Briefmodul)

Beitrag von Igsterman »

ein kleines Problem habe ich doch noch. Das Plugin habe ich mit
"if(hasRole('Webmaster', 'Vorstand')) ..." eingefügt. Bei meinem Login als Webmaster ist das PlugIn sichtbar und funktioniert - beim Login des Vorstand ist das Plugin jedoch nicht sichtbar.
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Gibt es bei dir die Rolle Vorstand, so wie in dem Beispiel?

VG Thomas
Benutzeravatar
Thomas-RCV
Former team member
Beiträge: 786
Registriert: 1. Aug 2011, 15:06

Re: Written Communications (Briefmodul)

Beitrag von Thomas-RCV »

Ich habe mir die Funktion mal angeschaut und die kann tatsächlich derzeit nur eine Rolle annehmen.
Da war ich leider im Irrtum. Soll aber kein Problem sein, denn die Funktion kann man mit der "oder" Syntax erweitern:

Code: Alles auswählen

if(hasRole('Webmaster') || hasRole('Vorstand'))
{
     //Code
}

VG Thomas
mdkasia
Beiträge: 4
Registriert: 23. Apr 2014, 21:17

Re: Written Communications (Briefmodul)

Beitrag von mdkasia »

Hallo und guten Abend,

ich habe das Modul mit der aktuellen written_communications_functions.php installiert und auch die ODER-Option für die Rollen eingestellt.

Ich erhalte nach Ausfüllen ALLER Felder (auch bei Einzeladressierung) folgende Fehlermeldungen:

Code: Alles auswählen

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/xxxxx/html/:/var/www/xxxxx/phptmp/:/var/www/xxxxx/files/:/var/www/xxxxx/atd/:/usr/local/php5.3/lib/php/:/usr/local/php5.3/pear/:/usr/bin/) in /var/www/xxxxx/html/admidio/adm_plugins/written_communications/written_communications_functions.php on line 200

Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in /var/www/xxxxx/html/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 73

Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in /var/www/xxxxx/html/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 74

Fatal error: Uncaught exception 'Exception' with message 'Could not open for writing.' in /var/www/xxxxx/html/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php:75 Stack trace: #0 /var/www/xxxxx/html/admidio/adm_plugins/written_communications/written_communications_functions.php(202): PHPWord_Writer_Word2007->save(false) #1 {main} thrown in /var/www/xxxxx/html/admidio/adm_plugins/written_communications/classes/PHPWord/Writer/Word2007.php on line 75
Das Verzeichnis "phptmp" liegt im root-Verzeichnis in auf der gleichen Ebene wie /html/ und hat die Rechte 0770.

Mehrere andere Installationen und Admidio selbst laufen einwandfrei (Admidio seit gestern :D ).

Was kann ich tun, um nicht auf das Briefmodul zu verzichten?

Beste Grüße
Antworten