endlessxpressions Posted May 5, 2017 Share Posted May 5, 2017 Today I went to go into modules, and it wont let me - it gives me the following error. Im not sure what to do to fix it. Im stuck not being able to access any modules [PrestaShop] Fatal error in module file :/home/streetkt/public_html/rep/themes/default-bootstrap/modules/statssales/translations/en.php:syntax error, unexpected '<' Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 forgot to add... I havent upgraded and Im on 1.6.0 Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 i went to that file and this is all I see. I have NO idea what do to. I need to edit my site and I cant access modules <?php global $_MODULE; $_MODULE = array(); $_MODULE['<{statssales}default-bootstrap>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders'; $_MODULE['<{statssales}default-bootstrap>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.'; $_MODULE['<{statssales}default-bootstrap>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide'; <?php $_MODULE['<{statssales}default-bootstrap>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.'; $_MODULE['<{statssales}default-bootstrap>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.'; $_MODULE['<{statssales}default-bootstrap>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.'; $_MODULE['<{statssales}default-bootstrap>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.'; $_MODULE['<{statssales}default-bootstrap>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.'; $_MODULE['<{statssales}default-bootstrap>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries'; $_MODULE['<{statssales}default-bootstrap>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter'; $_MODULE['<{statssales}default-bootstrap>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:'; $_MODULE['<{statssales}default-bootstrap>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:'; $_MODULE['<{statssales}default-bootstrap>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export'; $_MODULE['<{statssales}default-bootstrap>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:'; $_MODULE['<{statssales}default-bootstrap>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.'; $_MODULE['<{statssales}default-bootstrap>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.'; $_MODULE['<{statssales}default-bootstrap>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed'; $_MODULE['<{statssales}default-bootstrap>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought'; $_MODULE['<{statssales}default-bootstrap>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:'; $_MODULE['<{statssales}default-bootstrap>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s'; $_MODULE['<{statssales}default-bootstrap>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 There is a <?php in double. The code should be: <?php global $_MODULE; $_MODULE = array(); $_MODULE['<{statssales}default-bootstrap>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders'; $_MODULE['<{statssales}default-bootstrap>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.'; $_MODULE['<{statssales}default-bootstrap>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide'; $_MODULE['<{statssales}default-bootstrap>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.'; $_MODULE['<{statssales}default-bootstrap>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.'; $_MODULE['<{statssales}default-bootstrap>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.'; $_MODULE['<{statssales}default-bootstrap>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.'; $_MODULE['<{statssales}default-bootstrap>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.'; $_MODULE['<{statssales}default-bootstrap>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries'; $_MODULE['<{statssales}default-bootstrap>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter'; $_MODULE['<{statssales}default-bootstrap>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:'; $_MODULE['<{statssales}default-bootstrap>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:'; $_MODULE['<{statssales}default-bootstrap>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export'; $_MODULE['<{statssales}default-bootstrap>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:'; $_MODULE['<{statssales}default-bootstrap>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.'; $_MODULE['<{statssales}default-bootstrap>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.'; $_MODULE['<{statssales}default-bootstrap>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed'; $_MODULE['<{statssales}default-bootstrap>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought'; $_MODULE['<{statssales}default-bootstrap>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:'; $_MODULE['<{statssales}default-bootstrap>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s'; $_MODULE['<{statssales}default-bootstrap>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 changed to: <?phpglobal $_MODULE;$_MODULE = array();$_MODULE['<{statssales}default-bootstrap>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders';$_MODULE['<{statssales}default-bootstrap>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.';$_MODULE['<{statssales}default-bootstrap>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide';$_MODULE['<{statssales}default-bootstrap>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.';$_MODULE['<{statssales}default-bootstrap>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.';$_MODULE['<{statssales}default-bootstrap>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.';$_MODULE['<{statssales}default-bootstrap>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.';$_MODULE['<{statssales}default-bootstrap>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.';$_MODULE['<{statssales}default-bootstrap>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries';$_MODULE['<{statssales}default-bootstrap>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter';$_MODULE['<{statssales}default-bootstrap>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:';$_MODULE['<{statssales}default-bootstrap>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:';$_MODULE['<{statssales}default-bootstrap>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export';$_MODULE['<{statssales}default-bootstrap>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:';$_MODULE['<{statssales}default-bootstrap>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.';$_MODULE['<{statssales}default-bootstrap>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.';$_MODULE['<{statssales}default-bootstrap>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed';$_MODULE['<{statssales}default-bootstrap>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought';$_MODULE['<{statssales}default-bootstrap>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:';$_MODULE['<{statssales}default-bootstrap>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s';$_MODULE['<{statssales}default-bootstrap>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; still getting error Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 still says: [PrestaShop] Fatal error in module file :/home/streetkt/public_html/rep/modules/statssales/translations/en.php: syntax error, unexpected '<' when I try to access modules in the admin <?php global $_MODULE; $_MODULE = array(); $_MODULE['<{statssales}default-bootstrap>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders'; $_MODULE['<{statssales}default-bootstrap>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.'; $_MODULE['<{statssales}default-bootstrap>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide'; $_MODULE['<{statssales}default-bootstrap>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.'; $_MODULE['<{statssales}default-bootstrap>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.'; $_MODULE['<{statssales}default-bootstrap>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.'; $_MODULE['<{statssales}default-bootstrap>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.'; $_MODULE['<{statssales}default-bootstrap>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.'; $_MODULE['<{statssales}default-bootstrap>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries'; $_MODULE['<{statssales}default-bootstrap>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter'; $_MODULE['<{statssales}default-bootstrap>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:'; $_MODULE['<{statssales}default-bootstrap>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:'; $_MODULE['<{statssales}default-bootstrap>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export'; $_MODULE['<{statssales}default-bootstrap>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:'; $_MODULE['<{statssales}default-bootstrap>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.'; $_MODULE['<{statssales}default-bootstrap>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.'; $_MODULE['<{statssales}default-bootstrap>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed'; $_MODULE['<{statssales}default-bootstrap>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought'; $_MODULE['<{statssales}default-bootstrap>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:'; $_MODULE['<{statssales}default-bootstrap>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s'; $_MODULE['<{statssales}default-bootstrap>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 also noticed when I click on positions... page goes b lank and wont load. Im hoping this site isnt completely lost Link to comment Share on other sites More sharing options...
taniacr Posted May 5, 2017 Share Posted May 5, 2017 Hi endlessxpressions, Looks like there is still a < somewhere that shouldn't be there. Maybe another <?php ? Link to comment Share on other sites More sharing options...
taniacr Posted May 5, 2017 Share Posted May 5, 2017 (edited) Select all the text in the file, delete and replace with the following: <?php global $_MODULE; $_MODULE = array(); $_MODULE['<{statssales}prestashop>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders'; $_MODULE['<{statssales}prestashop>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.'; $_MODULE['<{statssales}prestashop>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide'; $_MODULE['<{statssales}prestashop>statssales_bdaa0cab56c2880f8f60e6a2cef40e63'] = 'About order statuses'; $_MODULE['<{statssales}prestashop>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.'; $_MODULE['<{statssales}prestashop>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.'; $_MODULE['<{statssales}prestashop>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.'; $_MODULE['<{statssales}prestashop>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.'; $_MODULE['<{statssales}prestashop>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.'; $_MODULE['<{statssales}prestashop>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries'; $_MODULE['<{statssales}prestashop>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter'; $_MODULE['<{statssales}prestashop>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:'; $_MODULE['<{statssales}prestashop>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:'; $_MODULE['<{statssales}prestashop>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export'; $_MODULE['<{statssales}prestashop>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:'; $_MODULE['<{statssales}prestashop>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.'; $_MODULE['<{statssales}prestashop>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.'; $_MODULE['<{statssales}prestashop>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed'; $_MODULE['<{statssales}prestashop>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought'; $_MODULE['<{statssales}prestashop>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:'; $_MODULE['<{statssales}prestashop>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s'; $_MODULE['<{statssales}prestashop>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; return $_MODULE; Edited May 5, 2017 by taniacr (see edit history) Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 I dont see one.everything on the en.php for that module under default_bootstrap is below <?phpglobal $_MODULE;$_MODULE = array();$_MODULE['<{statssales}default-bootstrap>statssales_45c4b3e103155326596d6ccd2fea0f25'] = 'Sales and orders';$_MODULE['<{statssales}default-bootstrap>statssales_d2fb07753354576172a2b144c373a610'] = 'Adds graphics presenting the evolution of sales and orders to the Stats dashboard.';$_MODULE['<{statssales}default-bootstrap>statssales_6602bbeb2956c035fb4cb5e844a4861b'] = 'Guide';$_MODULE['<{statssales}default-bootstrap>statssales_fdfa8599f3887bef99e9572f3611260f'] = 'In your back office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Canceled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.';$_MODULE['<{statssales}default-bootstrap>statssales_4b75384caa4e6830c22f15e06e0bfac0'] = 'These order statuses cannot be removed from the back office; however you have the option to add more.';$_MODULE['<{statssales}default-bootstrap>statssales_ddb21e1caa84c463bc744c412a7b05f5'] = 'The following graphs represent the evolution of your shop\'s orders and sales turnover for a selected period.';$_MODULE['<{statssales}default-bootstrap>statssales_ef9c3c65723819a9c183d857a39ff403'] = 'You should often consult this screen, as it allows you to quickly monitor your shop\'s sustainability. It also allows you to monitor multiple time periods.';$_MODULE['<{statssales}default-bootstrap>statssales_5cc6f5194e3ef633bcab4869d79eeefa'] = 'Only valid orders are graphically represented.';$_MODULE['<{statssales}default-bootstrap>statssales_c3987e4cac14a8456515f0d200da04ee'] = 'All countries';$_MODULE['<{statssales}default-bootstrap>statssales_d7778d0c64b6ba21494c97f77a66885a'] = 'Filter';$_MODULE['<{statssales}default-bootstrap>statssales_9ccb8353e945f1389a9585e7f21b5a0d'] = 'Orders placed:';$_MODULE['<{statssales}default-bootstrap>statssales_156e5c5872c9af24a5c982da07a883c2'] = 'Products bought:';$_MODULE['<{statssales}default-bootstrap>statssales_998e4c5c80f27dec552e99dfed34889a'] = 'CSV Export';$_MODULE['<{statssales}default-bootstrap>statssales_ec3e48bb9aa902ba2ad608547fdcbfdc'] = 'Sales:';$_MODULE['<{statssales}default-bootstrap>statssales_f6825178a5fef0a97dacf963409829f0'] = 'You can view the distribution of order statuses below.';$_MODULE['<{statssales}default-bootstrap>statssales_da80af4de99df74dd59e665adf1fac8f'] = 'No orders for this period.';$_MODULE['<{statssales}default-bootstrap>statssales_c58114720bcd52bfe96fd801cee77e93'] = 'Orders placed';$_MODULE['<{statssales}default-bootstrap>statssales_c8be451a5698956a0e78b5c2caab4821'] = 'Products bought';$_MODULE['<{statssales}default-bootstrap>statssales_b52b44c9d23e141b067d7e83b44bb556'] = 'Products:';$_MODULE['<{statssales}default-bootstrap>statssales_497a2a4cf0a780ff5b60a7a6e43ea533'] = 'Sales currency: %s';$_MODULE['<{statssales}default-bootstrap>statssales_17833fb3783b26e0a9bc8b21ee85302a'] = 'Percentage of orders per status.'; Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 Just tried that.. still giving me the same error. It says something about a unexpected '<' not sure what that is Link to comment Share on other sites More sharing options...
taniacr Posted May 5, 2017 Share Posted May 5, 2017 (edited) Is the file ending in return $_MODULE; ? Edited May 5, 2017 by taniacr (see edit history) Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 Oh wait.... not its saying another PHP file.. Before it was defaultbootstrap, not its not [PrestaShop] Fatal error in module file :/home/streetkt/public_html/rep/modules/statssales/translations/en.php:syntax error, unexpected '<' Link to comment Share on other sites More sharing options...
endlessxpressions Posted May 5, 2017 Author Share Posted May 5, 2017 ah ha! I needed to edit both module phps. regular and default bootstrap works now! LIFESAVER!! thank you Link to comment Share on other sites More sharing options...
taniacr Posted May 5, 2017 Share Posted May 5, 2017 Awesome! Happy sales! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now