ilch Forum » Ilch CMS 2.X » Installation und Upgrades » Fehler nach Update 2.1.58

Geschlossen
  1. #1
    User Pic
    ht-clan Mitglied
    Registriert seit
    10.03.2020
    Beitrge
    73
    Beitragswertungen
    6 Beitragspunkte
    Hey also ich habe ein upgrade gemacht auf 2.1.58 dort habe ich schon die selbe Fehler Meldung bekommen wie ich sie gleich unten hinschreibe . Auch nach jedem Update der Module kommt die Fehlermeldung allerdings wenn ich dann zurück gehe scheint er das Modul installiert zu haben kann auch auf der Website so keine Fehler erkennen erstmal .


    ZitatZitat
    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/boxes/Forum.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/boxes/views/forum.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/config/config.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Edittopic.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Newpost.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Newtopic.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Rememberedposts.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Showactivetopics.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Showcat.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Shownewposts.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Showposts.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Showtopics.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/Showunansweredtopics.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/admin/Index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/admin/Ranks.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/admin/Reports.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/controllers/admin/Settings.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/layouts/mail/reportedPost.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/layouts/mail/topicsubscription.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Forum.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/ForumStatistics.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/GroupRanking.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Post.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Rank.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Remember.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Reports.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/Topic.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/mappers/TopicSubscription.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/ForumItem.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/ForumPost.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/ForumStatistics.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/ForumTopic.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/GroupRank.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/Rank.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/Remember.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/Report.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/models/TopicSubscription.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/plugins/AfterDatabaseLoad.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/plugins/BeforeControllerLoad.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/css/forum.css): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/icon_post_target.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/icon_topic_latest.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/topic_read.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/topic_read_locked.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/topic_unread.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/static/img/topic_unread_locked.png): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/translations/de.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/translations/en.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/Showunansweredtopics/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/index/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/ranks/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/ranks/treat.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/reports/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/reports/show.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/settings/groupappearance.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/admin/settings/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/edittopic/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/index/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/newpost/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/newtopic/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/rememberedposts/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/rememberedposts/treat.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showactivetopics/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showcat/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/shownewposts/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showposts/edit.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showposts/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showposts/report.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: ZipArchive::extractTo(/var/www/html/application/modules/forum/views/showtopics/index.php): Operation failed: Operation not permitted in /var/www/html/application/libraries/Ilch/Transfer.php on line 470

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/application/libraries/Ilch/Transfer.php:470) in /var/www/html/application/libraries/Ilch/Redirect.php on line 166



    verwendete ilch Version: 2.1.x

    betroffene Homepage: ht-clan.de
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    hhunderter Entwickler
    Registriert seit
    12.08.2018
    Beitrge
    436
    Beitragswertungen
    71 Beitragspunkte
    Das hört sich nach an, nach fehlenden schreib rechten.
    Bitte diese einmal überprüfen und es kann möglich sein, dass das/die Modul(e) nicht aktualisiert worden sind (Dateien wurden durch fehlende schreib rechte nicht ersetzt).
    1 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    ht-clan Mitglied
    Registriert seit
    10.03.2020
    Beitrge
    73
    Beitragswertungen
    6 Beitragspunkte
    Rechte sind bei allen Ordnern und unterordnern 0777. Daran liegt es nicht .


    Komisch
    0 Mitglieder finden den Beitrag gut.
  4. #4
    User Pic
    hhunderter Entwickler
    Registriert seit
    12.08.2018
    Beitrge
    436
    Beitragswertungen
    71 Beitragspunkte
    Der Ordner Besitzer ist auch der richtige?
    Wurden denn die Dateien den ersetzt z.b.:
    application/modules/forum/controllers/Newpost.php
    sollte folgende Änderung beinhalten:
    github.com/hhunderter/Ilch-2.0/commit/f070b9402731241aa0205457c779b76bc6738c1a#diff-d26bc8f83b1d8a9d70d154a33429c02270161ebeaf85802da6198fa435463736R48
    0 Mitglieder finden den Beitrag gut.
  5. #5
    User Pic
    ht-clan Mitglied
    Registriert seit
    10.03.2020
    Beitrge
    73
    Beitragswertungen
    6 Beitragspunkte
    Also wenn der grüne Code der neue ist dann hat er es übernommen .

    Ein auszug hiervon :

    ZitatZitat
    <?php

    /**
    * @copyright Ilch 2
    * @package ilch
    */

    namespace Modules\Forum\Controllers;

    use Ilch\Controller\Frontend;
    use Ilch\Date;
    use Ilch\Mail;
    use Modules\Forum\Mappers\Post as PostMapper;
    use Modules\Forum\Mappers\Topic as TopicMapper;
    use Modules\Forum\Mappers\Forum as ForumMapper;
    use Modules\Forum\Mappers\TopicSubscription as TopicSubscriptionMapper;
    use Modules\Admin\Mappers\Emails as EmailsMapper;
    use Modules\Forum\Models\ForumPost as ForumPostModel;
    use Ilch\Validation;

    class Newpost extends Frontend
    {
    public function indexAction()
    {
    $forumMapper = new ForumMapper();
    $topicMapper = new TopicMapper();
    $postMapper = new PostMapper();

    $topicId = $this->getRequest()->getParam('topicid');

    if (empty($topicId) || !is_numeric($topicId)) {
    $this->redirect()
    ->withMessage('topicNotFound', 'danger')
    ->to(['controller' => 'index', 'action' => 'index']);
    }

    $forum = $forumMapper->getForumByTopicId($topicId);

    if (!$forum) {
    $this->redirect()
    ->withMessage('topicNotFound', 'danger')
    ->to(['controller' => 'index', 'action' => 'index']);
    }

    $cat = $forumMapper->getCatByParentId($forum->getParentId());
    $topic = $topicMapper->getTopicById($topicId);

    $prefix = '';
    if ($forum->getPrefixes() != '' && $topic->getTopicPrefix()->getId() > 0) {
    $prefixIds = explode(',', $forum->getPrefixes());
    array_unshift($prefixIds, '');

    foreach ($prefixIds as $prefixId) {
    if ($topic->getTopicPrefix()->getId() == $prefixId) {
    $prefix = '[' . $topic->getTopicPrefix()->getPrefix() . '] ';
    }
    }
    }

    $this->getLayout()->getTitle()
    ->add($this->getTranslator()->trans('forum'))
    ->add($cat->getTitle())
    ->add($forum->getTitle())
    ->add($prefix . $topic->getTopicTitle())
    ->add($this->getTranslator()->trans('newPost'));
    $this->getLayout()->getHmenu()
    ->add($this->getTranslator()->trans('forum'), ['controller' => 'index', 'action' => 'index'])
    ->add($cat->getTitle(), ['controller' => 'showcat','action' => 'index', 'id' => $cat->getId()])
    ->add($forum->getTitle(), ['controller' => 'showtopics', 'action' => 'index', 'forumid' => $forum->getId()])
    ->add($prefix . $topic->getTopicTitle(), ['controller' => 'showposts', 'action' => 'index', 'topicid' => $topicId])
    ->add($this->getTranslator()->trans('newPost'), ['controller' => 'newpost','action' => 'index', 'topicid' => $topicId]);

    $quotePostId = $this->getRequest()->getParam('quote');
    $postTextAsQuote = '';

    if ($quotePostId && is_numeric($quotePostId) && $quotePostId > 0) {
    $post = $postMapper->getPostById($quotePostId);

    if (!$post) {
    $this->redirect()
    ->withMessage('postNotFound', 'danger')
    ->to(['controller' => 'showposts', 'action' => 'index', 'topicid' => $topicId]);
    }

    // Check if the forum id of the post fits the id of the forum.
    // If that is not the case then don't even bother checking the rights
    // as the URL is invalid anyway.
    if ($post->getForumId() == $forum->getId()) {
    $readAccess = [3];
    if ($this->getUser()) {
    foreach ($this->getUser()->getGroups() as $us) {
    $readAccess[] = $us->getId();
    }
    }

    if (is_in_array($readAccess, explode(',', $forum->getReadAccess())) || ($this->getUser() && $this->getUser()->isAdmin())) {
    $postTextAsQuote = '<blockquote><cite>' . $post->getAutor()->getName() . ' ' . $this->getTranslator()->trans('wrote') . ':</cite>'
    . $post->getText() . '</blockquote>';
    } else {
    $this->redirect()
    ->withMessage('noAccessForum', 'danger')
    ->to(['controller' => 'index', 'action' => 'index']);
    }
    } else {
    $this->redirect()
    ->withMessage('noAccessForum', 'danger')
    ->to(['controller' => 'index', 'action' => 'index']);
    }
    }

    if ($this->getRequest()->getPost('saveNewPost')) {
    $dateCreated = '';
    $isExcludedFromFloodProtection = false;

    if ($this->getUser()) {
    $dateCreated = $postMapper->getDateOfLastPostByUserId($this->getUser()->getId());
    $isExcludedFromFloodProtection = is_in_array(array_keys($this->getUser()->getGroups()), explode(',', $this->getConfig()->get('forum_excludeFloodProtection')));
    }

    if ($this->getUser() && !$isExcludedFromFloodProtection && ($dateCreated >= date('Y-m-d H:i:s', time() - $this->getConfig()->get('forum_floodInterval')))) {
    $this->addMessage('floodError', 'danger');
    $this->redirect()
    ->withInput()
    ->to(['controller' => 'newpost', 'action' => 'index', 'topicid' => $this->getRequest()->getParam('topicid')]);
    } else {
    $validation = Validation::create($this->getRequest()->getPost(), [
    'text' => 'required'
    ]);

    if ($validation->isValid()) {
    $dateTime = new Date();

    $postModel = new ForumPostModel();
    $postModel->setTopicId($topicId)
    ->setUserId($this->getUser()->getId())
    ->setText($this->getRequest()->getPost('text'))
    ->setForumId($forum->getId())
    ->setDateCreated($dateTime);
    $postMapper->save($postModel);

    // Topic is marked as read when showing it (controller: showposts, action: index).
    $postsPerPage = (empty($this->getConfig()->get('forum_postsPerPage'))) ? $this->getConfig()->get('defaultPaginationObjects') : $this->getConfig()->get('forum_postsPerPage');
    $countPosts = $forumMapper->getCountPostsByTopicId($topicId);
    $page = ($this->getConfig()->get('forum_DESCPostorder') ? 1 : ceil($countPosts / $postsPerPage));

    // Notify subscribers
    $topicSubscriptionMapper = new TopicSubscriptionMapper();
    $subscribers = $topicSubscriptionMapper->getSubscriptionsForTopic($topicId);

    foreach ($subscribers as $subscriber) {
    if ($subscriber->getUserId() == $this->getUser()->getId()) {
    // Skip if post is from same user.
    continue;
    }

    if (strtotime($subscriber->getLastActivity()) < strtotime($subscriber->getLastNotification())) {
    // Skip if user wasn't active since the last notification.
    continue;
    }

    $date = new Date(date('Y-m-d H:i:s', strtotime('-5 minutes')));
    if (strtotime($subscriber->getLastActivity()) >= strtotime($date->toDb(true))) {
    // Skip if user was active within the last 5 minutes.
    continue;
    }

    $emailsMapper = new EmailsMapper();

    $sitetitle = $this->getLayout()->escape($this->getConfig()->get('page_title'));
    $subscriberUsername = $this->getLayout()->escape($subscriber->getUsername());
    $date = new Date();
    $mailContent = $emailsMapper->getEmail('forum', 'topic_subscription_mail', $this->getTranslator()->getLocale());
    $layout = $_SESSION['layout'] ?? '';
    if ($layout == $this->getConfig()->get('default_layout') && file_exists(APPLICATION_PATH . '/layouts/' . $this->getConfig()->get('default_layout') . '/views/modules/forum/layouts/mail/topicsubscription.php')) {
    $messageTemplate = file_get_contents(APPLICATION_PATH . '/layouts/' . $this->getConfig()->get('default_layout') . '/views/modules/forum/layouts/mail/topicsubscription.php');
    } else {
    $messageTemplate = file_get_contents(APPLICATION_PATH . '/modules/forum/layouts/mail/topicsubscription.php');
    }
    $messageReplace = [
    '{content}' => $this->getLayout()->purify($mailContent->getText()),
    '{sitetitle}' => $sitetitle,
    '{date}' => $date->format('l, d. F Y', true),
    '{name}' => $subscriberUsername,
    '{url}' => $this->getLayout()->getURL(['controller' => 'showposts', 'action' => 'index', 'topicid' => $topicId, 'page' => $page]),
    '{topicTitle}' => $this->getLayout()->escape($topic->getTopicTitle()),
    '{footer}' => $this->getTranslator()->trans('noReplyMailFooter')
    ];
    $message = str_replace(array_keys($messageReplace), array_values($messageReplace), $messageTemplate);
    $mail = new Mail();
    $mail->setFromName($sitetitle)
    ->setFromEmail($this->getLayout()->escape($this->getConfig()->get('standardMail')))
    ->setToName($subscriberUsername)
    ->setToEmail($this->getLayout()->escape($subscriber->getEmailAddress()))
    ->setSubject($this->getLayout()->escape($mailContent->getDesc()))
    ->setMessage($message)
    ->send();

    $topicSubscriptionMapper->updateLastNotification($topicId, $subscriber->getId());
    }

    $this->redirect()
    ->withMessage('saveSuccess')
    ->to(['controller' => 'showposts', 'action' => 'index', 'topicid' => $topicId, 'page' => $page]);
    }

    $this->addMessage($validation->getErrorBag()->getErrorMessages(), 'danger', true);
    $this->redirect()
    ->withInput()
    ->withErrors($validation->getErrorBag())
    ->to(['controller' => 'newpost', 'action' => 'index', 'topicid' => $this->getRequest()->getParam('topicid')]);
    }
    }

    $this->getView()->set('forumMapper', $forumMapper);
    $this->getView()->set('topicPost', $topic);
    $this->getView()->set('postTextAsQuote', $postTextAsQuote);
    $this->getView()->set('cat', $cat);
    $this->getView()->set('forum', $forum);
    $this->getView()->set('prefix', $prefix);
    }
    }
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurck zu Installation und Upgrades

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten