Jump to content

Koszyk nie działa- Fatal error: Class 'ParentOrderController' not found


kamila992

Recommended Posts

Cześć,

Właśnie robię mój pierwszy sklep z prestashop. Już na początku pojawił mi się duży problem którego nie umiem naprawić.

Gdy wrzucam produkt do koszyka i klikam- realizuj zamówienie, strona się nie ładuje, zamiast niej wyskakuje mi:

500 internal server error.

 

Włączyłam debudowanie i teraz mam coś takiego:

Fatal error: Class 'ParentOrderController' not found in /sklep/controllers/front/OrderController.php on line 29

 

Czy ktoś z was wie jak to naprawić i mógłby mi pomóc?

Próbowałam już czyścić cache, wyłączam przyjazne url, usuwać .htasccess i nic nie pomogło...

wersja php 5.2 , presta 1.6

 

nie zmienialam jeszcze nawet domeny, sklep znajduje sie tutaj: http://serwer1425423.home.pl

 

Bardzo proszę o pomoc,

Kamila

 

Kamila

Edited by kamila992 (see edit history)
Link to comment
Share on other sites

1. Zmień hosting na jakikolwiek inny, byle nie home,pl ;)

https://www.prestashop.com/forums/topic/372286-hosting-dla-prestashop/

 

2. Jeśli już musisz na home to:

Popraw zawartość plików .htaccess (katalog themes, modules) jak poniżej:

 

Jest:
<FilesMatch „\.tpl$”>
Deny from all
</FilesMatch>

 

Zamień na:
<Files ~ „\.tpl$”>
Deny from all
</Files>

Link to comment
Share on other sites

Tak, czytałam to forum wcześniej, problem rzeczywiście zdaje się być podobny, jednak u mnie od poczatku po zainstalowaniu koszyk nie dzialal,

 

ale tak jak pisałam - konwertowalam przyjazne linki, wywalalam .htacces, czyściłam cache i nic nie pomoglo

 

jedyna porada ktorej nie udalo mi sie zastosowac to :

 

przez phpmyadmin w tabeli ps_configuration znajdź pole url_rewriting..... i zamień z 1 na 0

 

U mnie w tabeli ps_configuration nie ma tego pola wcale nie wiem dlaczego ale na pewno go tam nie ma

Link to comment
Share on other sites

Czy może być to wina tego że mój plik ParentOrderController.php jest pusty ??

W oryginale plik na pewno nie jest pusty:

 

https://github.com/PrestaShop/PrestaShop/blob/1.6/controllers/front/ParentOrderController.php

 

Ale jaki hosting, takie pliki :D

 

A skąd wiesz, czy jeszcze sto innych plików nie jest puste?

Edited by Yabber (see edit history)
Link to comment
Share on other sites

Pewnie to niedobrze, mam tam taką informację:

 

Wykryto zmienione/brakujące pliki

Zaktualizowane pliki (275)

  • admin583y4t7fb/autoupgrade/index.php
  • admin583y4t7fb/backups/.htaccess
  • admin583y4t7fb/export/.htaccess
  • admin583y4t7fb/import/.htaccess
  • admin583y4t7fb/themes/default/js/tree.js
  • admin583y4t7fb/themes/default/template/error.tpl
  • admin583y4t7fb/themes/default/template/controllers/index.php
  • admin583y4t7fb/themes/default/template/controllers/access/index.php
  • admin583y4t7fb/themes/default/template/controllers/access/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/access/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/addons_catalog/index.php
  • admin583y4t7fb/themes/default/template/controllers/addresses/index.php
  • admin583y4t7fb/themes/default/template/controllers/addresses/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/addresses/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/addresses/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/attachments/index.php
  • admin583y4t7fb/themes/default/template/controllers/attribute_generator/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes_groups/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes_groups/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes_groups/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/attributes_groups/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/backup/index.php
  • admin583y4t7fb/themes/default/template/controllers/backup/download/index.php
  • admin583y4t7fb/themes/default/template/controllers/backup/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/backup/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/backup/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/carrier_wizard/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/carrier_wizard/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/carrier_wizard/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/carriers/index.php
  • admin583y4t7fb/themes/default/template/controllers/carriers/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/carriers/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/cart_rules/index.php
  • admin583y4t7fb/themes/default/template/controllers/cart_rules/product_rule.tpl
  • admin583y4t7fb/themes/default/template/controllers/cart_rules/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/cart_rules/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/carts/index.php
  • admin583y4t7fb/themes/default/template/controllers/carts/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/carts/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/categories/index.php
  • admin583y4t7fb/themes/default/template/controllers/categories/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/categories/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/categories/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms_categories/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms_categories/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms_categories/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/cms_content/index.php
  • admin583y4t7fb/themes/default/template/controllers/countries/index.php
  • admin583y4t7fb/themes/default/template/controllers/countries/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/countries/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/countries/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/customer_threads/index.php
  • admin583y4t7fb/themes/default/template/controllers/customer_threads/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/customer_threads/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/customer_threads/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/customer_threads/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/customers/index.php
  • admin583y4t7fb/themes/default/template/controllers/customers/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/customers/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/customers/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/emails/index.php
  • admin583y4t7fb/themes/default/template/controllers/employees/index.php
  • admin583y4t7fb/themes/default/template/controllers/employees/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/employees/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/feature_value/index.php
  • admin583y4t7fb/themes/default/template/controllers/feature_value/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/feature_value/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/features/index.php
  • admin583y4t7fb/themes/default/template/controllers/features/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/features/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/geolocation/index.php
  • admin583y4t7fb/themes/default/template/controllers/geolocation/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/geolocation/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/groups/index.php
  • admin583y4t7fb/themes/default/template/controllers/groups/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/groups/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/groups/helpers/tree/index.php
  • admin583y4t7fb/themes/default/template/controllers/groups/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/images/index.php
  • admin583y4t7fb/themes/default/template/controllers/import/index.php
  • admin583y4t7fb/themes/default/template/controllers/import/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/import/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/import/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/information/index.php
  • admin583y4t7fb/themes/default/template/controllers/information/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/information/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/invoices/index.php
  • admin583y4t7fb/themes/default/template/controllers/invoices/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/invoices/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/languages/index.php
  • admin583y4t7fb/themes/default/template/controllers/languages/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/languages/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/localization/index.php
  • admin583y4t7fb/themes/default/template/controllers/login/index.php
  • admin583y4t7fb/themes/default/template/controllers/logs/index.php
  • admin583y4t7fb/themes/default/template/controllers/logs/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/logs/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/maintenance/index.php
  • admin583y4t7fb/themes/default/template/controllers/maintenance/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/maintenance/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/manufacturers/index.php
  • admin583y4t7fb/themes/default/template/controllers/manufacturers/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/manufacturers/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/marketing/index.php
  • admin583y4t7fb/themes/default/template/controllers/marketing/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/marketing/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/meta/index.php
  • admin583y4t7fb/themes/default/template/controllers/meta/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/modules/index.php
  • admin583y4t7fb/themes/default/template/controllers/modules/tab_modules_list.tpl
  • admin583y4t7fb/themes/default/template/controllers/modules_positions/index.php
  • admin583y4t7fb/themes/default/template/controllers/not_found/index.php
  • admin583y4t7fb/themes/default/template/controllers/order_preferences/index.php
  • admin583y4t7fb/themes/default/template/controllers/order_preferences/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/order_preferences/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/orders/index.php
  • admin583y4t7fb/themes/default/template/controllers/orders/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/orders/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/outstanding/index.php
  • admin583y4t7fb/themes/default/template/controllers/payment/index.php
  • admin583y4t7fb/themes/default/template/controllers/payment/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/payment/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/performance/index.php
  • admin583y4t7fb/themes/default/template/controllers/performance/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/performance/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/preferences/index.php
  • admin583y4t7fb/themes/default/template/controllers/preferences/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/preferences/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/combination/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/combination/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/combination/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/products/multishop/index.php
  • admin583y4t7fb/themes/default/template/controllers/referrers/index.php
  • admin583y4t7fb/themes/default/template/controllers/referrers/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/referrers/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/referrers/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/referrers/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/request_sql/index.php
  • admin583y4t7fb/themes/default/template/controllers/request_sql/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/request_sql/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/request_sql/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/return/index.php
  • admin583y4t7fb/themes/default/template/controllers/return/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/return/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/scenes/index.php
  • admin583y4t7fb/themes/default/template/controllers/scenes/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/scenes/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/search/index.php
  • admin583y4t7fb/themes/default/template/controllers/search/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/search/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_group/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_group/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_group/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_url/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_url/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_url/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/shop_url/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/slip/index.php
  • admin583y4t7fb/themes/default/template/controllers/slip/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/slip/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/specific_price_rule/index.php
  • admin583y4t7fb/themes/default/template/controllers/specific_price_rule/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/specific_price_rule/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/states/index.php
  • admin583y4t7fb/themes/default/template/controllers/stats/index.php
  • admin583y4t7fb/themes/default/template/controllers/stats/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/stats/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/statuses/index.php
  • admin583y4t7fb/themes/default/template/controllers/statuses/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/statuses/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_cover/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_cover/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_cover/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_instant_state/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_instant_state/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_instant_state/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_mvt/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_mvt/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/stock_mvt/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/stores/index.php
  • admin583y4t7fb/themes/default/template/controllers/stores/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/stores/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/stores/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/suppliers/index.php
  • admin583y4t7fb/themes/default/template/controllers/suppliers/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/suppliers/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_change_state/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_change_state/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_change_state/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_receipt_history/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_receipt_history/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/supply_orders_receipt_history/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/tabs/index.php
  • admin583y4t7fb/themes/default/template/controllers/tabs/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/tabs/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/tags/index.php
  • admin583y4t7fb/themes/default/template/controllers/tags/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/tags/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules_group/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules_group/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/tax_rules_group/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/themes/index.php
  • admin583y4t7fb/themes/default/template/controllers/themes/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/themes/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/controllers/themes/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/controllers/themes/helpers/view/importtheme_view.tpl
  • admin583y4t7fb/themes/default/template/controllers/tracking/index.php
  • admin583y4t7fb/themes/default/template/controllers/tracking/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/tracking/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/controllers/translations/index.php
  • admin583y4t7fb/themes/default/template/controllers/translations/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/translations/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/warehouses/index.php
  • admin583y4t7fb/themes/default/template/controllers/warehouses/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/warehouses/helpers/view/index.php
  • admin583y4t7fb/themes/default/template/controllers/webservice/index.php
  • admin583y4t7fb/themes/default/template/controllers/webservice/helpers/index.php
  • admin583y4t7fb/themes/default/template/controllers/webservice/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/helpers/index.php
  • admin583y4t7fb/themes/default/template/helpers/form/index.php
  • admin583y4t7fb/themes/default/template/helpers/list/index.php
  • admin583y4t7fb/themes/default/template/helpers/options/index.php
  • admin583y4t7fb/themes/default/template/helpers/view/index.php
  • classes/Notification.php
  • classes/cache/index.php
  • classes/controller/index.php
  • classes/db/index.php
  • classes/helper/index.php
  • classes/log/index.php
  • classes/module/index.php
  • classes/order/index.php
  • classes/pdf/index.php
  • classes/range/index.php
  • classes/shop/index.php
  • classes/stock/index.php
  • classes/tax/index.php
  • classes/webservice/index.php
  • config/defines.inc.php
  • controllers/admin/index.php
  • controllers/front/OrderController.php
  • controllers/front/PageNotFoundController.php
  • js/jquery/plugins/jquery.validate-creditcard.js
  • js/jquery/plugins/alerts/jquery.alerts.css
  • js/jquery/plugins/alerts/jquery.alerts.js
  • js/jquery/plugins/jstree/jquery.jstree.js
  • js/jquery/plugins/jstree/themes/apple/style.css
  • js/jquery/plugins/jstree/themes/classic/style.css
  • js/jquery/plugins/jstree/themes/default/style.css
  • js/jquery/plugins/jstree/themes/default-rtl/style.css
  • js/jquery/plugins/smartWizard/jquery.smartWizard.js
  • js/jquery/plugins/treeview-categories/jquery.treeview-categories.async.js
  • js/jquery/plugins/treeview-categories/jquery.treeview-categories.sortable.js
Link to comment
Share on other sites

Ale w którym miejscu? Bo chyba w wszystkich wymienionych wyżej miejscach index.php wygląda inaczej. W /controllers/front treść tego pliku:

 

<?php

/*

* 2007-2015 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2015 PrestaShop SA

*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*/

 

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');

header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');

 

header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

 

header('Location: ../');

exit;

Link to comment
Share on other sites

 

Ale w którym miejscu? Bo chyba w wszystkich wymienionych wyżej miejscach index.php wygląda inaczej. W /controllers/front treść tego pliku

 

Akurat tego nie ma na liście zmienionych plików.

Podaj zawartość np. tego: classes/controller/index.php

Link to comment
Share on other sites

Coś pomyliłam wcześniej, w /admin583y4t7fb/themes index.php różnią się nieznacznie a w katalogu /controllers pliki index.php są takie same to jest ich treść:

 

<?php

/*

* 2007-2015 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2015 PrestaShop SA

*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*/

 

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');

header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');

 

header('Cache-Control: no-store, no-cache, must-revalidate');

header('Cache-Control: post-check=0, pre-check=0', false);

header('Pragma: no-cache');

 

header('Location: ../../');

exit;

Link to comment
Share on other sites

Myślałem, że jakiś złośliwy kod dokleił się do wszystkich index.php, ale są tylko dodatkowe trzy puste linie.

Co nie zmienia faktu, że tak nie powinno być, bo presta nawet zbędne puste linie traktuje jako zmiany.

Pewnie użyłaś jakiegoś cudacznego autoinstalatora od home?

 

Moja rada jest taka:

1. Zmień hosting :D

2. Albo pobierz oryginalną instalkę z PrestaShop i zainstaluj po bożemu :)

https://www.prestashop.com/en/download

3. Albo możesz to próbować zlepić do kupy wgrywając przez ftp wszystkie zmienione pliki.

Link to comment
Share on other sites

pliki index.php na serwerze ważą nieco mniej niż w oryginalnym folderze presty, tak ma być? nie dają się zastąpić, tzn po nadpisaniu ich nowymi dalej ważą tyle samo i wciąż są wyświetlane w liście zmienionych plików.

Jedyne 3 pliki udało się nadpisać:

  • controllers/front/OrderController.php
  • controllers/front/PageNotFoundController.php
  • admin583y4t7fb/themes/default/template/controllers/themes/helpers/view/importtheme_view.tpl

Ale oczywiście koszyk dalej nie działa. Spróbowałabym jeszcze zainstalować prestę na nowo, chyba istnieją sklepy sprawnie działające na home.pl ...

Czy można zapisać całą bazę produktów i atrybuty tak żebym nie musiała wprowadzać od nowa?

Link to comment
Share on other sites

Czy można zapisać całą bazę produktów i atrybuty tak żebym nie musiała wprowadzać od nowa?

Zapis całej kompletnej baza danych:

Zaawansowane -> Kopia zapasowa DB

Zapisz bazę na lokalny komputer.

Zapisz na lokalny komputer plik /config/settings.inc.php

 

Skasuj wszystko z katalogu presty.

Wgraj instalkę ponownie i zainstaluj.

Podmień bazę przez phpMyAdmin.

Podmień plik: /config/settings.inc.php

 

Edit:

Zapomniałem o tym:

https://www.prestashop.com/forums/topic/331640-serwer-homepl-problemy-z-prestashop-rozjechany-szablon/

Edited by Yabber (see edit history)
Link to comment
Share on other sites

Zapis całej kompletnej baza danych:

Zaawansowane -> Kopia zapasowa DB

Zapisz bazę na lokalny komputer.

Zapisz na lokalny komputer plik /config/settings.inc.php

 

Skasuj wszystko z katalogu presty.

Wgraj instalkę ponownie i zainstaluj.

Podmień bazę przez phpMyAdmin.

Podmień plik: /config/settings.inc.php

 

Edit:

Zapomniałem o tym:

https://www.prestashop.com/forums/topic/331640-serwer-homepl-problemy-z-prestashop-rozjechany-szablon/

jeszcze zachowaj katalog ./img a przynajmniej ./img/p - produkty

Edited by deejay3 (see edit history)
Link to comment
Share on other sites

stworzylam nową bazę danych, (starą też jeszcze zachowałam na wypadek) zainstalowałam prestę od nowa- tutaj już koszyk działał jak należy, następnie:

załadowałam wcześniejszą kopię bazdy danych, zaladowalam katalog /img i podmieniłam też /config/settings.inc.php

a jeszcze wcześniej pozmieniałam w .htacces FilesMatch na Files

 

po wprowadzeniu tych zmian nie mogę się zalogować do panelu admina, strona się źle wyświetla tak jakby .htaccess nie były pozamieniane... gdy wpisuje login i hasło srtona sie po prostu przeładowuje i dalej wyświetla w tym pokrzaczonym stanie...

Link to comment
Share on other sites

http://serwer1425423.home.pl/sklep/ -to jest na tej wcześniejszej bazie danych, nie można tu wejść w koszyk,

 

zrobiłam nową i tam zainstalowałam od nowa prestę wszystko działało jak należy dopóki nie wrzuciłam kopii bazy danych tej wcześniejszej i nie zmieniłam pliku settings.inc.php

nowo zainstalowana powinna być tutaj http://serwer1425423.home.pl/testowa/ i była dopóki nie wczytalam kopii bazy danych i tego pliku a teraz przekierowuje się na wczesniejszy adres http://serwer1425423.home.pl/sklep/

Link to comment
Share on other sites

Czyli nie zastąpiłaś starej instalacji, tylko wykonałaś całkiem nową instalację, a to jest zupełnie inna bajka.

Musisz w nowej instalacji zmienić następujące dane w settings.inc.php

define('_DB_NAME_', 'nazwa_nowej_bazy');
define('_DB_USER_', 'uzytkownik_bazy');
define('_DB_PASSWD_', 'haslo_nowej_bazy');
define('_DB_PREFIX_', 'pefiks_nowej_bazy_');
define('_PS_DIRECTORY_', '/testowa/');
 

Link to comment
Share on other sites

settings.inc.php ma tez klucz cookie, ktory jest uzywany do generowania hasla, m.in. hasla do panelu. [md5(COOKIE_KEYhaslo)]

tutaj tez musisz uwazac. jezeli chesz zeby /testowa odnosila sie do nowej zalozonej bazy, musisz tez przekopiowac ten klucz z oryginalnego pliku. jezlei chcesz zeby /tstowa dzialala na starej bazie /sklep to musisz poza w/w wrzucic tez stary klucz w setttings. to problem wczesniejszej wspomnianego bledu, ze nie mozna bylo sie zalogowac do panelu.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...