Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Problem po zainstalowaniu joomla
romanus
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.12.2013

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


Witajcie, ogólnie bardziej w tematyce jestem zielony, totalnie zielony... a o ile wszystko jakoś idzie... to w miaerę dobrze jest...
Ale przechodząc do tematu... Znajomu mnie poprosił bym mu drobną stronkę www założył... pod jego hostingiem który ma w Forpsi.
Wykupiłem i podpiąłem pod serwer domenę... wrzucam instalkę joomli... a tu problem oto taki się pojawia komunikat :

Parse error: syntax error, unexpected '=', expecting '(' in /home/vero/www/sgl/includes/framework.php on line 42

Proszę o pomoc bo totalnie nie wiem jak z tej opresji wyjść cało!
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Turson
post
Post #2





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

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


Pokaż linijkę 42 z sgl/includes/framework.php
Go to the top of the page
+Quote Post
romanus
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.12.2013

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


Cytat(Turson @ 19.12.2013, 13:26:13 ) *
Pokaż linijkę 42 z sgl/includes/framework.php



proszę podaję całość nawet :

  1. <?php
  2. /**
  3.  * @package Joomla.Site
  4.  * @subpackage Application
  5.  * @copyright Copyright ? 2005 - 2012 Open Source Matters, Inc. All rights reserved.
  6.  * @license GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8.  
  9. // No direct access.
  10. defined('_JEXEC') or die;
  11.  
  12. //
  13. // Joomla system checks.
  14. //
  15.  
  16. @ini_set('magic_quotes_runtime', 0);
  17. @ini_set('zend.ze1_compatibility_mode', '0');
  18.  
  19. //
  20. // Installation check, and check on removal of the install directory.
  21. //
  22.  
  23. if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) {
  24.  
  25. if (file_exists(JPATH_INSTALLATION.'/index.php')) {
  26. header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php');
  27. exit();
  28. } else {
  29. echo 'No configuration file found and no installation code available. Exiting...';
  30. exit();
  31. }
  32. }
  33.  
  34. //
  35. // Joomla system startup.
  36. //
  37.  
  38. // System includes.
  39. require_once JPATH_LIBRARIES.'/import.php';
  40.  
  41. // Force library to be in JError legacy mode
  42. JError::$legacy = true;
  43. JError::setErrorHandling(E_NOTICE, 'message');
  44. JError::setErrorHandling(E_WARNING, 'message');
  45. JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));
  46.  
  47. // Botstrap the CMS libraries.
  48. require_once JPATH_LIBRARIES.'/cms.php';
  49.  
  50. // Pre-Load configuration.
  51. require_once JPATH_CONFIGURATION.'/configuration.php';
  52.  
  53. // System configuration.
  54. $config = new JConfig();
  55.  
  56. // Set the error_reporting
  57. switch ($config->error_reporting)
  58. {
  59. case 'default':
  60. case '-1':
  61. break;
  62.  
  63. case 'none':
  64. case '0':
  65. break;
  66.  
  67. case 'simple':
  68. error_reporting(E_ERROR | E_WARNING | E_PARSE);
  69. ini_set('display_errors', 1);
  70. break;
  71.  
  72. case 'maximum':
  73. ini_set('display_errors', 1);
  74. break;
  75.  
  76. case 'development':
  77. ini_set('display_errors', 1);
  78. break;
  79.  
  80. default:
  81. error_reporting($config->error_reporting);
  82. ini_set('display_errors', 1);
  83. break;
  84. }
  85.  
  86. define('JDEBUG', $config->debug);
  87.  
  88. unset($config);
  89.  
  90. //
  91. // Joomla framework loading.
  92. //
  93.  
  94. // System profiler.
  95. if (JDEBUG) {
  96. jimport('joomla.error.profiler');
  97. $_PROFILER = JProfiler::getInstance('Application');
  98. }
  99.  
  100. //
  101. // Joomla library imports.
  102. //
  103.  
  104. jimport('joomla.application.menu');
  105. jimport('joomla.environment.uri');
  106. jimport('joomla.utilities.utility');
  107. jimport('joomla.event.dispatcher');
  108. jimport('joomla.utilities.arrayhelper');

Cytat(gitbejbe @ 19.12.2013, 13:30:48 ) *
skąd pobrałeś joomle ? Zalecam pobrać instalke z ich strony domowej


Z pobranej już paczki ze strony joomla wrzucalem już na inne strony i wszystko było okej.



Cytat(mar1aczi @ 19.12.2013, 13:26:19 ) *
Wygląda to na problem w kodzie. Błąd występuje zaraz po wgraniu źródeł na hosting?


Ogólnie na hostingu / serwerze tym są inne pliki (jakieś stare - nie moje) ale ogólnie jak wrzucam joomle do katalogu pod który ta domena ma się odwołać... gdzie został on chwilę przed tem stworzony się to pojawiło...
Powód edycji: [nospor]: uzywaj z laski swojej bbcode
Go to the top of the page
+Quote Post

Posty w temacie


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: 7.10.2025 - 02:21