Drupal Commerce Dynamic Address Field Issue - drupal-7

I've got a problem with the dynamic address field. Maybe it is a problem with the feed-importer, not quite sure about that.
I've imported customers to my database, in the view, name and address are displayed correctly but when i click on edit, those fields are empty. Is there any known issue with feeds-importer and drupal commerce dynamic address fields? Or am I doing wrong?
Or is there a chance to not use the dynamic address field but my own ones? Didn't find anything about that either.
EDIT: everything seems to be fine in the "field_data_commerce_customer_address" database table. Values are added correctly there. Does anyone know which database tables are used in addition to that? Maybe its a database issue.

The problem was, that commerce addresses depends on a correctly set country. My addresses did not have one. After adding it, the problem was solved!

Related

Matomo doesn't track actions anymore

I am currently trying to improve my matomo skills.
I created Custom Dimensions and started tracking them like this:
_paq.push(['setCustomDimension',1,kategorie]);
_paq.push(['trackPageView']);
It worked.
After that I created a Goal and tried to create my own Plugin.
Now my Custom Dimensions suddenly aren't tracked anymore - Matomo shows me there are 0 Actions in the Visits, though I did several Actions.
I thought I might have destroyed something while creating my Plugin etc. so I deleted it, but my Custom Dimensions still aren't tracked.
Do you have any idea what my Problem might be?
How were you checking that tracking dimensions worked before? You mean data being in the reports or just parameter being added in the GET request?
First of all, check your Visitors/Visitor log report - the lack of those numbers in the summaries may be effect of archiving not being run in the meantime.
I'm not sure how creating a Plugin could relate to this, maybe you can tell more what you mean here?
What is always a good idea is running debug mode on the request, so you can get confirmation if dimension value is picked up properly. Sometimes it maybe issue of it's length - afaik custom dimension value is limited to 250 chars.

Firebase Multi-database rules 'root' value issue

I'm using Firebase in my app that utilizes the new Multi-database feature. But, while setting up the rules, I noticed one annoying problem: the 'root' variable in the database rules is returning a RuleDataSnapshot of the primary database and not a RuleDataSnapshot of the secondary database the rules are attached to.
This is a huge problem for me because I have a few constant values in the secondary database that I need to reference in the rules. Because I'm planning to use this method to scale up, I don't want to have to try sorting and remapping these constants to the main database.
Thanks -Nathan
Okay! I found out that this was only happening in the simulator. I tested it live and it seemed to work properly. Definitely submitting this as a bug report. Thanks to anyone who started to check into this!

How do websites use information on a database to create pages?

Sorry about the broad question. I'm just curious if someone could point me in the right direction.
Say there's a database of contact information, and there's a site where you can input a persons name and it brings you to a page with all of their information on that database. How does this happen exactly? The server would have to dynamically create this page, but does it have a generic format that it just fills with the information? And how does this happen?
Like you said, this is a an extremely broad question. It could be either way. The server could generate the entire contents dinamically, or it could be "filling the blanks" into a preformatted layout.
Google some PHP basic tutorials. That should give you a good idea about how this "dynamism" works. Sorry but your question is too broad to ellaborate more.
The server would dynamically create the page using PHP and SQL. There is a quick tutorial at http://www.mysqltutorial.org/php-querying-data-from-mysql-table/ that shows how it would be setup.
If I understood your question right, you are asking things like how this page was created, for example, in which case it can be as simple as a basic PHP and SQL combination. You can check an example on the w3sschools website:
Try it yourself example
There would be special place holders for the data and a query will extract the data and put it into the given place holders, please note, you can also use loops to add things like tables, fetch through multiple rows and so on.

JDeveloper deleting ADF resource bundle reference from VO source

I'm using JDeveloper version 11.1.1.7.0 for an ADF project. Whenever I edit a View Object that uses a resource bundle to provide labels via UI hints for things like input text fields and table column headers, the resource bundle reference at the end of the VO XML source gets automatically removed by JDeveloper. This means that every time I want to add a new attribute, change a binding, etc I must go to the History tab and restore the resource bundle reference before running my application. Otherwise, the labels are just displayed as the raw attribute names from the VO (e.g. "employeeName" instead of "Employee Name" from the resource bundle).
This is not just an issue for me, but for everyone on my team. At best, it's a constant annoyance. At worst, bugs get filed because labels are missing and inexperienced developers think they need to redefine every single label, which is a huge waste of time. I've searched on Oracle Support and can't find any patch for this. Google doesn't find anything useful. Does anyone else have this issue? Know what might be causing it and of a way to fix it?
ETA: Even if you've encountered this but don't have a solution, please post a comment stating this. Part of my question is whether this is an issue unique to the project I'm working on, or whether it's a common JDeveloper bug.
ETA: For the record, this is still a problem with version 12.1.3.
This has happened to us and this had caused regression issue in the past for us. We have had to redo the labels everytime we edit the view object. I guess this is a jdeveloper bug.

HABTM association not being saved?

I'm attempting to create a simple 'tags' type of setup, allowing admins to 'tag' an image so it shows up in certain places. I've only started development and wanted to tackle this portion first. I literally just finished running bake, so everything at the moment is standard and I haven't touched any of the generated code.
I have three tables - Tags, Images, and Images_Tags. When I hit /images/add I see the tags I've created listed in a nice multi-select box. I enter the info, select some tags, hit submit. Once saved, I'm redirected to the index and I noticed there are no tags listed for the image I just created. Digging deeper, there are no records in the Images_tags table either.
I'm thinking something is off with my model, or I have a bad database column name somewhere that's borking the default methodology.
Any ideas where I could look? I'm a newbie to cakePHP, go easy on me :)
Here are a couple of things to look at.
From the sounds of things, the images are not being saved. This means that if images are not being saved, nothing will appear in the images_tags table. So the images create/save feature needs to be looked at more closely.
To troubleshoot this, since you have not touched the code, use scaffolding:
var $scaffold;
in the top of the controller and try adding the image again. See if that will allow you to add images. Typically, when something like this happens, its because the schema for the table has changed after baking all of the functionality for the table.

Resources