Message Consumer Issue - message-queue

I am using Orocommerce 4.0 on my Win10 system and i did some tasks in my custom bundle. It is containin adding products into db programmaticaly. If i want to see the products that I've created and the prices of those products in the Listing Page (Products navigation-root) message consumer should work in the background. Message consumer is working but not doing the inserting products and recalculating prices that is why I still cannot see them in frontend All Products navigation the Listing Page. There is no problem with the Main page cause i see them in there and same with the admin ui but something wrong with the message consumer or prices or currency that i can't see them in the All Products page (navigation-root/products). So anybody can tell what s wrong or what can i do about this I will be so thankful. Thanks in advance.

You can trigger the website reindex and price recalculation manually from the command line and then wait back the message consumer to process it.
For more information, see the documentation.
https://doc.oroinc.com/backend/architecture/tech-stack/search-index/#triggering-reindexation
https://doc.oroinc.com/user/concept-guides/pricing/optimize-index-and-price-calculation/#price-recalculation
Also, you should notice that the latest OroCommerce versions are not fully compatible with Windows as a development environment, because it relies on a PHP extension that is not available on Windows. So you can have some unexpected issues there.
I recommend a switch to Linux or Mac for development or use WSL or Docker if you have any experience with them.

Related

When many users uses a same webpage, will functionality in that webpage may behave abnormally?

I have a website where it was hosted in 10 servers. From past somedays many users a using a particular webpage. so some functionalities in that particular webpage are not working as expected. They are behaving abnormally
For Example : I have a clear button on the page where user clicks on the button and it should clear all the checkboxes. But it was not clearing all the checkboxes. It was not a code error because we are using this webpage from many years.
More Details :
*It is a Vb.Net code
*.Net 1.1 version
*VS2003
*We have hosted code in 10 servers, where if a server has heavy load it changes to other(Load Balancer).
*Windows 2008R2
*IIS Version 7.5.7600.16385
My question is "As many users are using the webpage frequently will there be any thing happening" or any other reasons or bugs why this is happening. Any theoretical explanation for this issue please?
I could see that you are using VS 2003, VB.Net 1.1, Windows Server 2008 R2, and IIS 7.5 All the products you are using are out of support now.
Generally when many users use the web page then also it should work properly without any issues. As your project type is too old, it is difficult for us to comment on the possible cause of the issue.
One thing you could check is whether the website works fine on any of the 10 servers. If yes, compare the Server configuration and app settings with the Server that is having the issue.
See whether any Windows update got installed or if any configuration or code change occurred. It might give you some hints.
Check the browser console for errors. If you have the project then try to run it on your development machine to check whether it works. It could be possible, that some things got changed and you need to update your code according to it.

How to send notification to users of a mobile application from a server when an event happens, using ionic 3 and laravel 5.6

I am building a school application that will connect parents to teachers, i am using Ionic 3 and Laravel 5.6.
And i want to be able to send a notification to all parents, when for instance a teacher gives an assignment, when the teacher enters the assignment question and click on the send button, the question is save to the database, after then a notification should be sent to the mobile devices of all parents who's children are taking that subject.
I have done a lot of research on how to do this, on the Cordova Push Notification Plugin and Cordova Local Notification. I have followed a video tutorial that implements Firebase and Push Notification, and also One Signal and Push Notification. But i was still unable to achieve what i wanted.
If they are anymore materials out there, that could help me achieve this, I will be so grateful to have someone share it with me, or if anyone can help me out with is, I will be very happy.
These are the other materials I found:
The PHP Package repository
Laravel Notification Channels
Quora
Please let your users know that using OneSignal's "free" service would allow the company to get users data and sell it to others.
Google's Firebase cloud messaging service is reliable but comes with a cost if you want many connections. See Firebase Pricing Plans.
I personally used fcm. It was not really a breeze implementing it on my thesis but it worked nicely. No need to make the app listen on background for incoming notifications then create a local notification, me not selling my users data, and not paying anything on the use of firebase's services. I used the free 300 dollars gift from google cloud to shoulder the expenses from the firebase spark plan.(free for 12 months)
A warning if you use the cordova plugins of fcm: If you have a cordova plugin that uses google's services it may come in conflict with the fcm plugins you listed above due to different versions used. It may need manual editing on the src plugins.
If you decide on using fcm, this link might help you.
The basic steps you have to do after you set up the needed environment is to
Get FCM token on platform.ready async.
Save it to firebase under the said user
Create a cloud function that will send notifications

Magento out of memory when switching currency and items in cart

Scenario
have an empty cart
switch to euros
Loads fine
Add a product to cart
Loads fine
Switch back to pounds
Site hangs and then crashes
Site cant be reloaded until all cookies are deleted
I can see in the mysql.log that same queries are in an infite loop. I have magento enterprise 1.14 on my site.
Really appericiate if I could get some help here. I find people with similiar problems but none of the solutions are working.
First, you need to figure out what is triggering the issue.
To do that, please disable all extensions you have installed on your store, and then enable them one by one trying to reproduce the issue.
If that doesn't work, please increase the value of the variables memory_limit, max_execution_time.
Let us know if it helps.

Couchbase admin tool falling over with filtered document list

I'm using the couchbase admin tool and one of the most useful features for me is the ability to go into the documents of a particular bucket and then using the document filter dialog I type a document prefix that I've reserved for a particular document type and then I immediately get a filtered list of just documents of this type.
For instance, if I had a bucket called "sports" which had data for all sorts of sports, I might have set of records related to tennis, football, etc. and let's assume that the ID's of these documents were all prefixed with the particular sport in question. So in this case I'd simply put football into the Document Filter dialog and would expect to see just those documents whose ID's start with "football". This is happening as I type. This functionality works perfectly fine on my main development machine but on my laptop and in my production environment typing results in nothing as I type. I can press the "Lookup Id" button on any environment and as long as a proper ID has been specified it will load the document but the real-time filtering is for me critical to making the admin functionality useful to me.
It's worth mentioning that both my main dev machine and laptop are on OSX and production is Ubuntu. Also of note, my main development environment is still creeping around on version 2.0.1 because I'm afraid of losing this functionality but my laptop is running 2.5.1 and I think prod is the same.
Also, looking at the network panel in the debugger I do notice an important variation:
Both laptop and main dev machines load the document viewer without any JS errors
Independant of typing on into the filter dialog my main dev fires off REST calls periodically to: http://couchserver:8091/pools/default?uuid=xxxxxx&waitChange=20000&etag=xxxxxx
As soon as I type into the filter dialog I see network requests that look like this: http://couchserver:8091/couchBase/reference_data/_all_docs?startkey=%22football%22&endkey=%22football%EF%BF%BF%22&skip=0&include_docs=true&limit=21&_=1399627171015
My laptop, where the functionality doesn't work, does also seem to have the basic polling message listed above but when I type into the filter dialog no message is sent (and no JS error thrown either). Just silence. :(
It appears from IRC and other channels that this functionality has been removed because it was causing stability problems with large datasets. This is a bit worrisome to me and I still feel strongly that this functionality is highly desirable in an admin tool (at least in development environments although I would argue both prod and dev).
Anyway, while the UI still uses the "filter" terminology I think it's fair to say the filter terminology has been removed. I will now have to write my own admin interface. :(

creating manual view to In App purchase

I am using In App feature in my windows phone app and uploaded beta version to store. everything is working fine but it shows me two buttons, Install and Cancel, I need to change the text install to Purchase.
since we are not going to install anything we are purchasing an item so i need make fallowing changes like given Image
I don't know how to make these change, If any one have idea then suggest me what to do.
Thanks.
no answer at all.
Is this not possible?
For beta app, all IAP's are free - that's why in your first screen it is listed as "Free".
This purchase windows is common purchase experience defined by WP platform. You can't make changes/customizations to this. You can read more here, see point D.