Errors with exports, mass actions and etc.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #178338

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : Chrome 38.0.2125

Hello! Sorry for my english...

After update i have several problems with HikaShop back-end.

1. Top menu item became white, and were black (image 1.jpg)



2. I want to export to csv file and do the following steps (as is usually the case).



3. And get in the same window.



4. Mass action is not working. I created an example, but when I run the process csv file is not created.



Please, help me solve this problems?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 9 months ago #178339

Hi,

1. Please display our menu "above the main area".
www.hikashop.com/support/support/documen...html#display_general (menu position)

2-3. Do you have a system plugin which could alter the headers ?
The Spreadsheet helper in HikaShop set the headers so the generated CSV is see as a downloadable file and not as a webpage.
(you can see the function "send" in the Spreadsheet helper).

4. When you specify a filename in a mass action, you should specific the full filename ; not just a path (folder).
So please use instead " D:\my_export_file.csv "

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #178435

Jerome wrote: Hi,

1. Please display our menu "above the main area".
www.hikashop.com/support/support/documen...html#display_general (menu position)

2-3. Do you have a system plugin which could alter the headers ?
The Spreadsheet helper in HikaShop set the headers so the generated CSV is see as a downloadable file and not as a webpage.
(you can see the function "send" in the Spreadsheet helper).

4. When you specify a filename in a mass action, you should specific the full filename ; not just a path (folder).
So please use instead " D:\my_export_file.csv "

Regards,


1. OK, it works!

2-3. I'm sorry, but I do not understand what kind of plugin you say. Before update HikaShop the export function worked perfectly.
After update, I did not install new modules, plugins and components. Where I can see " The Spreadsheet helper in HikaShop " and " the function "send" in the Spreadsheet helper ".

4. I have the full path " D:\export.csv " now. But it still does not work...

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #178446

Hi,

2-3: There was maybe an error when updating, please try to re-install HikaShop over the current installation.

4: You have to set a valid path on your server, not on your computer. If you want to download it directly, you can let this field empty.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #178614

2-3: There was maybe an error when updating, please try to re-install HikaShop over the current installation.


I've already tried this method, but nothing. Now again to reinstall the same result.

4: You have to set a valid path on your server, not on your computer.


Ok, this way works.

If you want to download it directly, you can let this field empty.


The same problem as with 2-3. csv file looks as a webpage. The problem is somewhere deeper.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #178625

Hi,

As we are not able to reproduce the issue on our end, could you give us a backend access and a ftp one too.
You can give the informations via our contact form or via private message, don't forget to give the url of that topic in the message.

Don't you have any plugin which could interact with the file generation, or something like that ?

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179019

Xavier wrote: Hi,
Don't you have any plugin which could interact with the file generation, or something like that ?


I do not think that I have such. Information sent via private message.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #179298

hi,

I just tried on your website and everything seems to be working fine.
When clicking on the export button on the product listing page, it open a popup which allow me to save the csv file.

In the mass actions, when letting the path empty, it display too a popup to save the file.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179471

Xavier wrote: hi,

I just tried on your website and everything seems to be working fine.
When clicking on the export button on the product listing page, it open a popup which allow me to save the csv file.

In the mass actions, when letting the path empty, it display too a popup to save the file.


Then I absolutely do not understand what could be the problem. I tried on different computers, different browsers, all the same result :(

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #179486

Hi,

I just tried again, and asked to a colleague to test it too, and it's working fine on our computers with different browsers.
So I don't understand, don't you have a plugin on your browser, or something like that which could cause this ?

Which browsers are you using ? We tried mainly with Firefox.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179566

Xavier wrote: Hi,

I just tried again, and asked to a colleague to test it too, and it's working fine on our computers with different browsers.
So I don't understand, don't you have a plugin on your browser, or something like that which could cause this ?

Which browsers are you using ? We tried mainly with Firefox.


Hi,

I found the cause of my problem. You go to the admin panel using the English language. I did the same and I have everything working. However, if I use the Russian language is a problem with the export.

What do I do?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #179601

Hi,

So it's potentially an encoding error due to the language.
Could you try to set the Joomla error reporting level to "Maximum" in order to see if any errors are returned ?
If there is no errors here, please check your php error log file to see if there is no informations about that.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179711

Xavier wrote: Hi,

So it's potentially an encoding error due to the language.
Could you try to set the Joomla error reporting level to "Maximum" in order to see if any errors are returned ?
If there is no errors here, please check your php error log file to see if there is no informations about that.


Hi,

I set the Joomla error reporting level to "Maximum" and get information about the following errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 63

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 66

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at /home/sequels/keks-store.ru/docs/language/ru-RU/ru-RU.localise.php:1) in /home/sequels/keks-store.ru/docs/administrator/components/com_hikashop/helpers/spreadsheet.php on line 72

In my file spreadsheet.php the line 63-72 looks like:
header('Pragma: public');
			header('Expires: 0');
			header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
			header('Content-Type: application/force-download');
			header('Content-Type: application/octet-stream');
			header('Content-Type: application/download');
			header('Content-Disposition: attachment;filename='.$this->filename.' ');
			header('Content-Transfer-Encoding: binary ');
			if(!$this->progressive) {
				header('Content-Length: '.strlen($this->buffer));

This will help to correct the mistake?

And I noticed another problem. In the browser address bar appeared strange ways, for example:

www.keks-store.ru /com-virtuemart-menu-store/katalog

I have not installed virtuemart.

This problem appeared after I changed the default language to English and then back into the Russian language.


Problem was solved by simply renaming the main menu hikashop. Very strange ...

Last edit: 10 years 9 months ago by Keks-Store. Reason: New info

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 9 months ago #179736

Hi,

I think that your PHP file "keks-store.ru/docs/language/ru-RU/ru-RU.localise.php" is in UTF-8 with the BOM character at the beginning.
PHP does not support the UTF8 BOM and it result as a content which is sent to the client ; by sending something to the client, the headers are sent to and it is not possible to re-sent them afterwards.

I don't know why this file is included but if you have such problem in the future ; you have to look at the first file in the error message in order to understand why some content has been send to the client.

regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179823

Hi,

I still do not understand what I do now to solve this problem and not in the future.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #179935

Hi,

To solve this problem, apart renaming the main menu, if Jerome is right you have to open the indicated file"keks-store.ru/docs/language/ru-RU/ru-RU.localise.php" with an editor and change its encoding format from UTF-8 with BOM to UTF-8 without BOM.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 0
10 years 9 months ago #179980

Xavier wrote: Hi,

To solve this problem, apart renaming the main menu, if Jerome is right you have to open the indicated file"keks-store.ru/docs/language/ru-RU/ru-RU.localise.php" with an editor and change its encoding format from UTF-8 with BOM to UTF-8 without BOM.


Thank you very much. Solving the problem was even simpler. My file ru-RU.localise.php was actually in UTF-8 without BOM. However, I just resave it in the same UTF-8 encoding without BOM and it worked!

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum