Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php-fusion 7] Naprawa błędu w wtyczce, Naprawa błędu w wtyczce
jwr
post
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 28.06.2014

Ostrzeżenie: (0%)
-----


Witam, do php-fusion 7x istnieje taka wtyczka: Last & Next Match Panel (do pobrania) i występuje w niej taki błąd:

Dodając ostatni mecz, fusion wyświetla błąd w wtyczce:

templates/adminLast.phtml
Undefined index: end Linia: 58

(IMG:http://files.tinypic.pl/i/00545/vbsegx566bgc.png)

Kod:

  1. <?php require('adminMenu.phtml'); ?>
  2. <?php if(!isset($errors) and $result): ?>
  3. <div class="message success"><p><?php echo $locale['LN214'] ?></p></div>
  4. <?php elseif(isset($errors)): ?>
  5. <div class="message failed">
  6. <p><?php echo $locale['LN215'] ?></p>
  7. <ul>
  8. <?php foreach($errors as $error): ?>
  9. <li><?php echo $error ?></li>
  10. <?php endforeach ?>
  11. </ul>
  12. </div>
  13. <?php endif ?>
  14. <div class="admin-last">
  15. <form method="post" action="">
  16. <div class="last-fields">
  17. <label><?php echo $locale['LN205'] ?><span style="color: #fd3d3d"> * </span>:</label>
  18. <input type="text" name="home" class="textbox" id="logo-team" size="30" value="<?php echo $lastMatch['home'] ?>">
  19. <img src="<?php echo $last->getTeamLogo($lastMatch['home'], $imgFolder) ?>" alt="<?php echo $lastMatch['home'] ?>" height="17px" class="home logo-preview">
  20. </div>
  21. <div class="last-fields">
  22. <label><?php echo $locale['LN206'] ?><span style="color: #fd3d3d"> * </span>:</label>
  23. <input type="text" name="away" class="textbox" id="logo-team" size="30" value="<?php echo $lastMatch['away'] ?>">
  24. <img src="<?php echo $last->getTeamLogo($lastMatch['away'], $imgFolder) ?>" alt="<?php echo $lastMatch['away'] ?>" height="17px" class="away logo-preview">
  25. </div>
  26. <div class="last-fields">
  27. <label><?php echo $locale['LN207'] ?><span style="color: #fd3d3d"> * </span>:</label>
  28. <input type="text" name="score" size="30" class="textbox" value="<?php echo $lastMatch['score'] ?>">
  29. </div>
  30. <div class="last-fields">
  31. <label><?php echo $locale['LN208'] ?>:</label>
  32. <input type="text" name="half-score" class="textbox" size="30" value="<?php echo $lastMatch['half_score'] ?>">
  33. <img src="../images/ico_info.png" height="17px" class="info-field" alt="<?php echo $locale['LN237'] ?>">
  34. </div>
  35. <div class="last-fields">
  36. <label><?php echo $locale['LN209'] ?><span style="color: #fd3d3d"> * </span>:</label>
  37. <input id="match-date" type="text" name="date" class="textbox" size="30" value="<?php echo $lastMatch['date'] ?>">
  38. </div>
  39. <div class="last-fields">
  40. <label><?php echo $locale['LN239'] ?>:</label>
  41. <input id="match-time" type="text" name="time" class="textbox" size="30" value="<?php echo $lastMatch['time'] ?>">
  42. </div>
  43. <div class="last-fields">
  44. <label><?php echo $locale['LN210'] ?>:</label>
  45. <input type="text" name="type" class="textbox" size="30" value="<?php echo $lastMatch['type'] ?>">
  46. </div>
  47. <div class="last-fields">
  48. <label><?php echo $locale['LN234'] ?>:</label>
  49. <input type="text" name="relation" class="textbox" size="30" value="<?php echo $lastMatch['relation'] ?>">
  50. <img src="../images/ico_info.png" height="17px" class="info-field" alt="<?php echo $locale['LN238'] ?>">
  51. </div>
  52. <div class="last-fields">
  53. <label><?php echo $locale['LN211'] ?>:<br>
  54. <span><?php echo $locale['LN212'] ?></span>
  55. </label><textarea rows="5" cols="27" name="scores" class="textbox"><?php echo str_replace("\'", "'", $lastMatch['goalscorers']); ?></textarea>
  56. </div>
  57. <div class="last-button">
  58. <input type="hidden" name="end" value="<?php echo $lastMatch['end'] ?>"/>
  59. <p><span style="color: #fd3d3d"> * </span> - <?php echo $locale['LN220'] ?></p>
  60. <input type="submit" value="<?php echo $locale['LN213'] ?>" name="ok" class="button">
  61. </div>
  62. </form>
  63. </div>
  64. <?php include('adminFooter.phtml') ?>


Czy da radę naprawić ten błąd?
Go to the top of the page
+Quote Post

Posty w temacie
- jwr   [php-fusion 7] Naprawa błędu w wtyczce   28.06.2014, 10:12:55
- - Pyton_000   Spróbuj zamienić to: Kod<?php echo $lastM...   28.06.2014, 11:46:22
- - jwr   Teraz gdy wejdę w następny mecz w wtyczce to wywal...   28.06.2014, 14:26:09
- - Turson   Ewidentnie napisane, że jest niepotrzebny średnik....   28.06.2014, 14:32:20
- - jwr   Cytat(Turson @ 28.06.2014, 15:32:20 )...   28.06.2014, 14:47:32
- - Turson   (!isset($lastMatch['end']) Masz n...   28.06.2014, 15:04:58
- - jwr   Dodałem ten kod: [PHP] pobierz, plaintext <inp...   28.06.2014, 15:09:50
- - Turson   Czy ty w ogóle wiesz co robisz...? [PHP] pobierz, ...   28.06.2014, 15:11:59
- - jwr   Cytat(Turson @ 28.06.2014, 16:11:59 )...   28.06.2014, 17:15:06
- - Turson   W utf8 musi być: - baza danych - format pliku - ch...   28.06.2014, 20:05:29
- - jwr   Baza danych posiada kodowanie utf8_general_ci Po z...   29.06.2014, 11:08:18
- - Turson   Zmień ręcznie metodę porównywania napisów, jeżeli ...   29.06.2014, 11:12:33
- - jwr   A jak to dokładnie zrobić dla tej tabeli?   29.06.2014, 12:21:10
- - Turson   PhpMyAdmin, wchodzisz w tą bazę, następnie "S...   29.06.2014, 13:30:38
- - jwr   Dzięki za info, ustawiłem i teraz wszystko jest ok...   12.08.2014, 13:50:38
- - Pyton_000   PPM -> Zbadaj element (lub podobnie w innych ni...   12.08.2014, 16:01:19
- - jwr   Cytat(Pyton_000 @ 12.08.2014, 17:01:1...   12.08.2014, 17:50:22
- - Pyton_000   sprawdź szablon w którym jest ten box czy nie ma p...   13.08.2014, 14:01:23
- - jwr   Cytat(Pyton_000 @ 13.08.2014, 15:01:2...   13.08.2014, 14:20:34
- - Pyton_000   Wyszukiwarka na górze strony hasło "BOM"   13.08.2014, 14:39:42


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 01:51