Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano (edytowane)

Dostaje jakiś dziwny błąd przy wejściu do pliku do zatwierdzenia w innych wszystko działa:

 

[[Template downloads/front/view/view is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

 

Jak to można naprawic?

 

Dodam ze nie zawsze co jakis czas tak sie dzieje

Edytowane przez Majster87

logo.png.519590789bae8db2833a4ecc09316aef.png

Zostaw suba, dużo pomożesz w tworzeniu: https://www.youtube.com/channel/UC8T8FoCAhg64dNIxQfCwhEQ

Opublikowano (edytowane)
Godzinę temu, DawPi napisał(a):

Nic nie ma w logach? Przy wyłączeniu wszystkich dodatków działa?

Error: Call to a member function url() on null in /var/www/u233951/data/www/fs-portal.pl/system/Theme/Theme.php(885) : eval()'d code:3539
Stack trace:
#0 /var/www/u233951/data/www/fs-portal.pl/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_downloads_front_view->view()
#1 /var/www/u233951/data/www/fs-portal.pl/applications/downloads/modules/front/downloads/view.php(266): IPS\Theme\_SandboxedTemplate->__call()
#2 /var/www/u233951/data/www/fs-portal.pl/system/Dispatcher/Controller.php(118): IPS\downloads\modules\front\downloads\_view->manage()
#3 /var/www/u233951/data/www/fs-portal.pl/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#4 /var/www/u233951/data/www/fs-portal.pl/applications/downloads/modules/front/downloads/view.php(62): IPS\Content\_Controller->execute()
#5 /var/www/u233951/data/www/fs-portal.pl/system/Dispatcher/Dispatcher.php(153): IPS\downloads\modules\front\downloads\_view->execute()
#6 /var/www/u233951/data/www/fs-portal.pl/index.php(13): IPS\_Dispatcher->run()
#7 {main}

takie cos w logach pokazuje

 

nie wiem czy to to było ale w tym kodzie 

 

{{if ( \IPS\Member::loggedIn()->member_id == $file->author()->member_id OR $file->canUnhide() OR $file->canHide() ) AND $file->hasPendingVersion()}}
    <div class="ipsMessage ipsMessage_warning ipsSpacer_both ipsClearfix">
        <p class="ipsType_reset">
            {lang="file_pending_approval_version"}

        <ul class='ipsList_inline ipsPos_right' data-controller="downloads.front.pending.buttons">
          {{if $file->canUnhide() OR $file->canHide()}}
          <li>
              <a href="{expression="\IPS\downloads\File\PendingVersion::load($file->id, 'pending_file_id')->url()"}" class="ipsPos_right ipsButton ipsButton_positive ipsButton_verySmall sm:ipsMargin_top:half sm:ipsPos_left" title='{lang="file_pending_version_button"}'>{lang="file_pending_version_button"}</a>
          </li>
          {{endif}}
          {{if $file->canDeletePendingVersion() }}
          <li>
              <a href="{expression="\IPS\downloads\File\PendingVersion::load($file->id, 'pending_file_id')->url()->setQueryString('do','delete')->csrf()"}" class="ipsPos_right ipsButton ipsButton_negative ipsButton_verySmall sm:ipsMargin_top:half sm:ipsPos_left" title='{lang="delete"}' data-confirm>{lang="delete"}</a>
          </li>
          {{endif}}
        </ul>
        
    </div>
    {{endif}}

 

miałem zamkniecie <p w ten sposób

 

{{if ( \IPS\Member::loggedIn()->member_id == $file->author()->member_id OR $file->canUnhide() OR $file->canHide() ) AND $file->hasPendingVersion()}}
    <div class="ipsMessage ipsMessage_warning ipsSpacer_both ipsClearfix">
        <p class="ipsType_reset">
            {lang="file_pending_approval_version"}

        <ul class='ipsList_inline ipsPos_right' data-controller="downloads.front.pending.buttons">
          {{if $file->canUnhide() OR $file->canHide()}}
          <li>
              <a href="{expression="\IPS\downloads\File\PendingVersion::load($file->id, 'pending_file_id')->url()"}" class="ipsPos_right ipsButton ipsButton_positive ipsButton_verySmall sm:ipsMargin_top:half sm:ipsPos_left" title='{lang="file_pending_version_button"}'>{lang="file_pending_version_button"}</a>
          </li>
          {{endif}}
          {{if $file->canDeletePendingVersion() }}
          <li>
              <a href="{expression="\IPS\downloads\File\PendingVersion::load($file->id, 'pending_file_id')->url()->setQueryString('do','delete')->csrf()"}" class="ipsPos_right ipsButton ipsButton_negative ipsButton_verySmall sm:ipsMargin_top:half sm:ipsPos_left" title='{lang="delete"}' data-confirm>{lang="delete"}</a>
          </li>
          {{endif}}
        </ul>
      </p>
    </div>
    {{endif}}

 

 

i było na czerwono i na samym końcu strony </div> tez na czerwono, usunąłem to </p> i wszystko na zielono teraz, możliwe ze to by robiło ten problem?

Edytowane przez Majster87

logo.png.519590789bae8db2833a4ecc09316aef.png

Zostaw suba, dużo pomożesz w tworzeniu: https://www.youtube.com/channel/UC8T8FoCAhg64dNIxQfCwhEQ

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.