{"id":88,"date":"2011-04-13T14:52:14","date_gmt":"2011-04-13T14:52:14","guid":{"rendered":"http:\/\/blog.bp8.pl\/?p=88"},"modified":"2011-10-18T17:40:29","modified_gmt":"2011-10-18T17:40:29","slug":"joomla-1-6-vs-serwery-home-pl-jpathcheck-snooping-out-of-bounds-administratorcomponentscom_cpanelviews","status":"publish","type":"post","link":"https:\/\/blog.bp8.pl\/index.php\/2011\/04\/13\/joomla-1-6-vs-serwery-home-pl-jpathcheck-snooping-out-of-bounds-administratorcomponentscom_cpanelviews\/","title":{"rendered":"Joomla 1.6 vs serwery home.pl (JPath::check Snooping out of bounds @ \/administrator\/components\/com_cpanel\/views)"},"content":{"rendered":"<p>Zainstalowa\u0142em sobie joomle na serwerze home.pl w katalogu \/cms dla test\u00f3w,<br \/>\nby to zrobi\u0107 trzeba w configuration.php zmieni\u0107 zapis:<\/p>\n<div class=\"code-bp8-html\">public $live_site = &#8221;;<\/div>\n<p>na<\/p>\n<div class=\"code-bp8-html\">public $live_site = &#8216;http:\/\/moja-domena.pl\/cms\/&#8217;;<\/div>\n<p>po testach chcia\u0142em przenie\u015b\u0107 joomle na normalny adres moja http:\/\/moja-domena.pl wi\u0119c przegra\u0142em pliki wr\u00f3ci\u0142em zapis w configuration.php na<\/p>\n<div class=\"code-bp8-html\">public $live_site = &#8221;;<\/div>\n<p>i jakie\u015b by\u0142o moje zdziwienie jak panel admina wyrzuci\u0142 error:<\/p>\n<div class=\"code-bp8-html\">20 &#8211; An error has occurred.<br \/>\nJPath::check Snooping out of bounds @ \/administrator\/components\/com_cpanel\/views<br \/>\nReturn to Control Panel<\/div>\n<p>hmmm, zacz\u0105\u0142em grzeba\u0107 jak to si\u0119 robi\u0142o w joomlach 1,5 i doszed\u0142em do odpowiedzi takowej:<br \/>\nzapis w configuration.php musia\u0142 wr\u00f3ci\u0107 to takowego:<\/p>\n<div class=\"code-bp8-html\">public $live_site = &#8216;http:\/\/moja-domena.pl\/&#8217;;<\/div>\n<p>i trzeba by\u0142o zedytowa\u0107 plik w takiej \u015bcie\u017cce:<\/p>\n<div class=\"code-bp8-html\">\/libraries\/joomla\/filesystem\/parth.php<\/div>\n<p>linia 169<br \/>\nz zapisu :<\/p>\n<div class=\"code-bp8-html\">$path = JPATH_ROOT;<\/div>\n<p>na<\/p>\n<div class=\"code-bp8-html\">$path = &#8216;\/&#8217;;<\/div>\n<p>i dzia\u0142a, pozdr dla wszystkich co maja taki sam problem<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zainstalowa\u0142em sobie joomle na serwerze home.pl w katalogu \/cms dla test\u00f3w, by to zrobi\u0107 trzeba w configuration.php zmieni\u0107 zapis: public $live_site = &#8221;; na public $live_site = &#8216;http:\/\/moja-domena.pl\/cms\/&#8217;; po testach chcia\u0142em przenie\u015b\u0107 joomle na normalny adres moja http:\/\/moja-domena.pl wi\u0119c przegra\u0142em pliki wr\u00f3ci\u0142em zapis w configuration.php na public $live_site = &#8221;; i jakie\u015b by\u0142o moje zdziwienie [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[62,33,61,63,20,25,64,34],"_links":{"self":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/88"}],"collection":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":8,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bp8.pl\/index.php\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}