Ergebnis 1 bis 14 von 14

Thema: swiftmailer - Class 'Swift_Mime_SimpleMessage' not found (domain*go)

  1. #1
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard swiftmailer - Class 'Swift_Mime_SimpleMessage' not found (domain*go)

    Hallo,

    nach Umzug zu domain*go können keine Mails mehr über das Kontaktformular versand werden.
    Beim abschicken erscheint folgende Fehlermeldung:

    Code:
    Fatal error: Class 'Swift_Mime_SimpleMessage' not found in /kunden/338010_76275/webseite/system/vendor/swiftmailer/classes/Swift/Message.php on line 19
    Weiß jemeand woran das liegen könnte?

    thx. rttmax

  2. #2
    Contao-Urgestein
    Registriert seit
    03.06.2010.
    Ort
    Wuppertal
    Beiträge
    2.149
    User beschenken
    Wunschliste

    Standard

    Was sagt der Contao Check?
    Hört sich eher nach einer defekten Datei an...

  3. #3
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Laut Contao-Check ist alles in Ordnung.

  4. #4
    Contao-Urgestein
    Registriert seit
    03.06.2010.
    Ort
    Wuppertal
    Beiträge
    2.149
    User beschenken
    Wunschliste

    Standard

    Wie sieht denn der Inhalt folgender Datei aus?

    Code:
    system/vendor/swiftmailer/classes/Swift/Mime/SimpleMessage.php

  5. #5
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Die Datei gibt's nicht...

  6. #6
    Contao-Urgestein
    Registriert seit
    03.06.2010.
    Ort
    Wuppertal
    Beiträge
    2.149
    User beschenken
    Wunschliste

    Standard

    Dann solltest du den gesamten Swiftmailer Ordner noch einmal hochladen...

  7. #7
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    mmm. Im aktuellen Contao 3.1.0 Paket ist schon der Ordner vendor nicht enthalten.
    Wird der Ordner vom vielleicht vom System erstellt? Dann könnte ich ihn von der alten Installation nehmen?!

  8. #8
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.943

    Standard

    Zitat Zitat von Flex Beitrag anzeigen
    Wie sieht denn der Inhalt folgender Datei aus?

    Code:
    system/vendor/swiftmailer/classes/Swift/Mime/SimpleMessage.php
    Zitat Zitat von rttmax Beitrag anzeigen
    Die Datei gibt's nicht
    Wie kann eine nicht existente Datei in Zeile 19 einen Fehler werfen:

    Zitat Zitat von rttmax Beitrag anzeigen
    Code:
    Fatal error: Class 'Swift_Mime_SimpleMessage' not found in /kunden/338010_76275/webseite/system/vendor/swiftmailer/classes/Swift/Message.php on line 19
    Hast Du vielleicht in zwei verschiedenen Installationen nachgeschaut?

    Edit: wohl noch zu früh am Morgen. Sind natürlich zwei verschiedene Dateien SimpleMessage.php und Message.php

    Sorry.
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  9. #9
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Ich weiß nicht ob's weiterhilft, aber der Inhalt der message.php sieht wie folgt aus:

    PHP-Code:
    <?php

    /*
     * This file is part of SwiftMailer.
     * (c) 2004-2009 Chris Corbyn
     *
     * For the full copyright and license information, please view the LICENSE
     * file that was distributed with this source code.
     */

    /**
     * A Message (RFC 2822) object.
     *
     * @package    Swift
     * @subpackage Mime
     * @author     Chris Corbyn
     */
    interface Swift_Mime_Message extends Swift_Mime_MimeEntity
    {
        
    /**
         * Generates a valid Message-ID and switches to it.
         *
         * @return string
         */
        
    public function generateId();

        
    /**
         * Set the subject of the message.
         *
         * @param string $subject
         */
        
    public function setSubject($subject);

        
    /**
         * Get the subject of the message.
         *
         * @return string
         */
        
    public function getSubject();

        
    /**
         * Set the origination date of the message as a UNIX timestamp.
         *
         * @param integer $date
         */
        
    public function setDate($date);

        
    /**
         * Get the origination date of the message as a UNIX timestamp.
         *
         * @return int
         */
        
    public function getDate();

        
    /**
         * Set the return-path (bounce-detect) address.
         *
         * @param string $address
         */
        
    public function setReturnPath($address);

        
    /**
         * Get the return-path (bounce-detect) address.
         *
         * @return string
         */
        
    public function getReturnPath();

        
    /**
         * Set the sender of this message.
         *
         * If multiple addresses are present in the From field, this SHOULD be set.
         *
         * According to RFC 2822 it is a requirement when there are multiple From
         * addresses, but Swift itself does not require it directly.
         *
         * An associative array (with one element!) can be used to provide a display-
         * name: i.e. array('email@address' => 'Real Name').
         *
         * If the second parameter is provided and the first is a string, then $name
         * is associated with the address.
         *
         * @param mixed  $address
         * @param string $name    optional
         */
        
    public function setSender($address$name null);

        
    /**
         * Get the sender address for this message.
         *
         * This has a higher significance than the From address.
         *
         * @return string
         */
        
    public function getSender();

        
    /**
         * Set the From address of this message.
         *
         * It is permissible for multiple From addresses to be set using an array.
         *
         * If multiple From addresses are used, you SHOULD set the Sender address and
         * according to RFC 2822, MUST set the sender address.
         *
         * An array can be used if display names are to be provided: i.e.
         * array('email@address.com' => 'Real Name').
         *
         * If the second parameter is provided and the first is a string, then $name
         * is associated with the address.
         *
         * @param mixed  $addresses
         * @param string $name      optional
         */
        
    public function setFrom($addresses$name null);

        
    /**
         * Get the From address(es) of this message.
         *
         * This method always returns an associative array where the keys are the
         * addresses.
         *
         * @return string[]
         */
        
    public function getFrom();

        
    /**
         * Set the Reply-To address(es).
         *
         * Any replies from the receiver will be sent to this address.
         *
         * It is permissible for multiple reply-to addresses to be set using an array.
         *
         * This method has the same synopsis as {@link setFrom()} and {@link setTo()}.
         *
         * If the second parameter is provided and the first is a string, then $name
         * is associated with the address.
         *
         * @param mixed  $addresses
         * @param string $name      optional
         */
        
    public function setReplyTo($addresses$name null);

        
    /**
         * Get the Reply-To addresses for this message.
         *
         * This method always returns an associative array where the keys provide the
         * email addresses.
         *
         * @return string[]
         */
        
    public function getReplyTo();

        
    /**
         * Set the To address(es).
         *
         * Recipients set in this field will receive a copy of this message.
         *
         * This method has the same synopsis as {@link setFrom()} and {@link setCc()}.
         *
         * If the second parameter is provided and the first is a string, then $name
         * is associated with the address.
         *
         * @param mixed  $addresses
         * @param string $name      optional
         */
        
    public function setTo($addresses$name null);

        
    /**
         * Get the To addresses for this message.
         *
         * This method always returns an associative array, whereby the keys provide
         * the actual email addresses.
         *
         * @return string[]
         */
        
    public function getTo();

        
    /**
         * Set the Cc address(es).
         *
         * Recipients set in this field will receive a 'carbon-copy' of this message.
         *
         * This method has the same synopsis as {@link setFrom()} and {@link setTo()}.
         *
         * @param mixed  $addresses
         * @param string $name      optional
         */
        
    public function setCc($addresses$name null);

        
    /**
         * Get the Cc addresses for this message.
         *
         * This method always returns an associative array, whereby the keys provide
         * the actual email addresses.
         *
         * @return string[]
         */
        
    public function getCc();

        
    /**
         * Set the Bcc address(es).
         *
         * Recipients set in this field will receive a 'blind-carbon-copy' of this
         * message.
         *
         * In other words, they will get the message, but any other recipients of the
         * message will have no such knowledge of their receipt of it.
         *
         * This method has the same synopsis as {@link setFrom()} and {@link setTo()}.
         *
         * @param mixed  $addresses
         * @param string $name      optional
         */
        
    public function setBcc($addresses$name null);

        
    /**
         * Get the Bcc addresses for this message.
         *
         * This method always returns an associative array, whereby the keys provide
         * the actual email addresses.
         *
         * @return string[]
         */
        
    public function getBcc();
    }

  10. #10
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Problem gelöst. Mehrere der Dateien im swiftmailer-Ordner waren defekt. Ich hab sie erneut kopiert - Jetzt klappt's!

  11. #11
    Contao-Urgestein
    Registriert seit
    03.06.2010.
    Ort
    Wuppertal
    Beiträge
    2.149
    User beschenken
    Wunschliste

    Standard

    Zitat Zitat von rttmax Beitrag anzeigen
    Problem gelöst. Mehrere der Dateien im swiftmailer-Ordner waren defekt. Ich hab sie erneut kopiert - Jetzt klappt's!
    Dann hast du den oben erwähnten Contao Check nicht ordentlich ausgeführt... Der hätte dir sofort gesagt, dass dort Dateien defekt sind.

  12. #12
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Naja. Da war und ist alles grün. Keine Warnungen oder Fehlermeldungen. In den defekten Dateien haben einfach einige Zeilen am Ende gefehlt.
    Ich hab keine Ahnung was passiert ist. Danke für eure Hilfe auf jeden Fall.
    rttmax

  13. #13
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hast Du im Contao-Check auch den letzten Punkt "Validate an existing Contao installation" angeklickt? Erst diese Funktion prüft Deine Installation auf Integrität und Vollständigkeit.

    Da es diesbezüglich in der Vergangenheit immer wieder zu Verständnisproblemen gekommen ist, wurde im aktuellen Contao-Check der Link optisch etwas deutlicher hervorgehoben und durch einen Button "Validate an existing installation" ersetzt.
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  14. #14
    Contao-Nutzer
    Registriert seit
    22.08.2011.
    Beiträge
    75

    Standard

    Nein, den Link habe ich tatsächlich nicht geklickt. Verwendet habe ich Version 6.5. Die Funktion habe ich bisher übersehen.
    Danke für den Hinweis.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •