Report widgets and rows issues

  • Posts: 187
  • Thank you received: 10
10 years 6 months ago #154181

-- url of the page with the problem -- : multiple
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : Error_message

Reporting issues:

Creating a table, adding rows with for example total sales for this year. I select start date 1/1/2014, choose confirmed and shipped for status and leave everything else blank. This used to work but not anymore. It displays zero.
Even worse when I try to edit the row bij clicking the pencil, it opens as a new row with empty default title.

I also have had rows and even complete widgets dissapearing from the control panel.

Not sure if this is a bug or some sort of table issue but it is pretty consistant. I had it in J2.5 and now after the migration to J3.3 it is still there.

UPDATE: Just lost my table/widget for the third time: I was in edit mode, decide to cancel that and get out to the control panel and whole widget lost. DOuble checked this on other sites and the same happens.

Last edit: 10 years 6 months ago by zebrafilm.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 6 months ago #154246

We are not able to reproduce. Please provide a backend access and a FTP access via our contact form so that we can look at the issue and put traces in the code:
www.hikashop.com/support/contact-us.html

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

  • Posts: 187
  • Thank you received: 10
10 years 6 months ago #154979

I have made a long and detailed message in the contact form as request but did not hear anything back. Its about a week ago.
Can you confirm it is received and on someones 'todo' list?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #156582

Hi,

Sorry, we forgot to answer you.
Yes we have received the email via the contact form, and reproduced the issues.

I have added it on our TODO list and will correct it as soon as possible.

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

  • Posts: 187
  • Thank you received: 10
10 years 5 months ago #158611

Guys, this is a major bug but we can't wait for a full new version. When can we expect a quick patch?

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

  • Posts: 2334
  • Thank you received: 403
10 years 5 months ago #158835

Hi there,

Sorry for the delay.
I quickly checked on our end and saw an issue.
Could you edit the file widget.php in administrator/components/com_hikashop/classes and replace this line:

$widget->widget_access=$formData['widget']['widget_access'];
$widget->widget_params->display='table';

with:
$widget->widget_access=$formData['widget']['widget_access'];
$widget->widget_params = new stdClass();
$widget->widget_params->display='table';

It should be around line 71.
It solved the problem on my side, let me know if it works for you!

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

  • Posts: 187
  • Thank you received: 10
10 years 5 months ago #158888

Version 2.3.1, line 79. Replaced the code.
I don't get the extra lines/reports but the old ones are now overwriting the previous one.
EG, I create totals, last year and save it. Then create a new tabel row for totals this year and end up with only the last one with totals this year.

Last edit: 10 years 5 months ago by zebrafilm.

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

  • Posts: 2334
  • Thank you received: 403
10 years 5 months ago #159492

My bad, I might have done this a bit too quickly

the lines should be:

$widget->widget_access=$formData['widget']['widget_access'];
if(!isset($widget->widget_params)) $widget->widget_params = new stdClass();
$widget->widget_params->display='table';

It should do the trick ;)

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

  • Posts: 187
  • Thank you received: 10
10 years 5 months ago #159551

Now I can add a (table row) with totals and they stay but the moment I want to edit them, I get a new report instead of the option to edit the existing one.

If the above issue gets fixed:
Still the other issues remains: when you create a report for "this year" you still get details from last year with it. I think Nicolas said it shows the last 365 days or so, which is not 'this year' . the same for other presets. At least I get very different numbers if I set the dates by hand, eg 1/1/2014-31/12/20014 compared to the 'this year' choice.

The widgets are extremely important for my clients. They want to see if their campagnes work or not.
Please pay some good attention to this. It has been left like this already for too long.

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

  • Posts: 2334
  • Thank you received: 403
10 years 5 months ago #159662

I check on your website and noticed Hikashop looks weird.

After setting the Joomla's "error reporting" option to maximum it looks like you have a x_cache issue which might cause a lot of bug. I disable the error reporting but if you could have a look at it it would be great.

From what I can see, some code seems to be removed. So your instalation of Hikashop might be defectuous. I would suggest to fix the x_cache issue (simply disable maybe), see if it fixes Hikashop and if not, reinstall it (if it's a live site create a copy). Your parameters and products should be conserved (but not the modification you made to the code so you'll have to re-add the code I gave you).

We're going to handle this :)

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

  • Posts: 187
  • Thank you received: 10
10 years 5 months ago #159749

Hi Eliot, thanks for hanging on to this.

I maintain over a hundred Joomla sites and have seen this issue before at a few sites. The one thing in common is that they all where upgrade (step by step) from very early Hikashop versions. I assume somewhere in all those upgrades something could have gone wrong on a few sites. It would be interesting to find out what.
Of course I have re-installed Hika a few times before turning to the forum. The Jinstaller is not the most reliable piece...
For security did it again on this site today and re-adjusted the code.
As mentioned, I can make a new widget with a table. Editing does not work and when switching away from Hika and coming back, removes the new made widgets.

Since this is an active live site I can't switch on the error reporting now but I will make a copy of the website so we can test a bit better. (8GB so bit of a job)

I will be able to switch off caching for testing but not as a permanent solution. ( That site has days with 30.000 visitors)
This should also not be needed thats not a real solution. Errors need to be solved not 'hidden' :-)

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

  • Posts: 187
  • Thank you received: 10
10 years 5 months ago #160085

Test site has been setup with same FTP and credentials: test.v******.nl
xCache has been replaced by memcache but can be switched off for testing.
Hope to make some progress soon.

Last edit: 10 years 5 months ago by zebrafilm.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163016

Hi,

Sorry for the delay. Your subject was assigned to Eliot which was waiting for the access three weeks ago and he took a leave since then without unassigning itself from it so we lost your subject.

Don't hesitate to message us again if you don't hear from us after a few days.

So I've checked your website and I think I found the issue and the solution.
Replacing the first line:
'hikashop_edit_popup',
by:
'hikashop_edit_popup_'.$key,
in the file administrator/components/com_hikashop/views/dashboard/tmpl/table.php fixes the issue on your website v******.nl
I'm not sure why but when I made the change to the file via FTP to test.v******.nl it's actually the main website file which was changed. I tested the modification on it and it worked (see the report with the id 28).

You also mentioned a problem with "wizard" on the frontend in your message to eliot but there are no wizard on the frontend. The wizard is only in the backend of HikaShop just after the first installation on the website.
I guess that you must be speaking about wishlists edition ?
In that case, the next version should fix that and is to be released in a few days. If you want it before, you can request it via our contact form and we'll provide it. It was tested by several other users regarding wishlist/cart modifications on the frontend and the several fixes we added seems to have solved all the problems with that.

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

  • Posts: 187
  • Thank you received: 10
10 years 4 months ago #163033

Hi Nicolas, thanks for picking this up. Apology accepted. I am going to calm down my clients with some nice totals. :-)

Some feedback and checks:
Eliot wrote earlier and suggested to change some code, does your change comes on top of that or is just adding the $key good for all sites?

I have noticed that using "Last 30 days" shows all orders from the Egyptians up to now. Guess there is a bug in that one. Other settings seem ok as far as I can check now.

I have also notice that refunds, which my client books as negative orders, do not work well in the totals. They get added to the totals instead of subtracted.

Not sure what I wrote before but the issues we had:

Dashboard:
Widgets disappearing, fixed by Eliots code?
Creating tables in a report gave strange values. Most seems fixed but not all.
Editing tables made them jump and behave strange (the $key issue) fixed by Nicolas code
Totals with refunds are not calculated correctly.

Bastiaan

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163201

Hi,

1. I don't know what you had added or not regarding Eliot's suggestions.
The only thing I changed on your website was that line of code.
All the fixes that Eliot provided earlier have been added to our SVN and will be in a future release.

2. I'm not sure what you mean with the Egyptians and the Last 30 days. Is that the name of a report on your website ? I only see dutch names so I'm not sure what you're refering to. If it's a total, how do you know that it only takes the orders from egyptians ?

3. Orders total is added together regardless of the status. If you need a total of the confirmed orders minus the refunded orders, I would recommend to have two rows, one for the total of the refunded orders, one for the total of the refunded orders and then do the substraction manually.

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

  • Posts: 187
  • Thank you received: 10
10 years 4 months ago #163379

Hi Nicolas, sorry for joking :-) With Egyptian's I was referring to a time before our years started counting.

1, YEs seems in the new release rthe widgets stay in place and got Eliots fix. After install I lost the most important widget (and a lot of work) but after I recreated everything it now seems to stay....

2. The issue is that some of the table rows data preselectors still don't work (and tested in the new release last night.)
It seems that at least the "Last 30 days" and "last year" options don't set the right dates internally. I am assuming the don't get the right start date set in the system and there show everything from the beginning instead of for example the last 30 days.

3. Yes thats how I did but bookkeepers want it differently btu lets continue the discussion in that thread.

Hope this is clear enough...

So what's seem to be left for the bug reports are the date preset option in the table reports.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163470

Hi,

2. I see what you mean. I have sometimes a hard time with jokes in English :)
I've fixed the issues with the last 30 days and last year on your website and also on the package available on our end.

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

Time to create page: 0.113 seconds
Powered by Kunena Forum