Can't get the WordPress wrapper to work

donworth

Member
I'm trying to get an unauthenticated page up inside a WordPress site. I edited in the secret key and session name in the dadabik_wrapper.php file and loaded it into the appropriate WP plug-ins folder and activated the plug-in. I put the following in my WP page:

[dadabik_wrapper url=http://www.48ovvi.org/dadabik]

My dadaBIK application's home page is http://www.48ovvi.org/dadabik/index.php and my WordPress installation is in http://www.48ovvi.org/wp - the page in question is Area Deaths. If I go directly to the link above I get my application, but in WordPress I see a blank page.

Does my dadaBIK folder have to be a sub folder of WP? I'm not using WP authentication so I didn't think it would matter. The SQL database should be accessible.

Any suggestions?

Thanks!
Don


-------------------

Your current DaDaBIK version

You are using DaDaBIK version 10.4-Manarola pro, installed on 12-26-2020 (installation code: 163965fe831cbbb99e), the latest version of DaDaBIK is 10.4-Manarola released on 12-10-2020

You are runnning the last release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enteprise to Platinum) please contact us.

System info

PHP Version: 7.2.34

mysql version: 5.5.62-cll-lve

Web server: Apache

Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

URL installation: https://48ovvi.org/dadabik/
 

eugenio

Administrator
Staff member
Hello,
I think the problem might be the fact it is not in a subfolder, could you try to move the dadabik folder under wp?

Best,
 

donworth

Member
Thanks, Eugenio! I just tried that but it didn't work. I put dadaBIK in public_htlm/wp/dadabik on www.48ovvi.org. Then I pasted this into a paragraph block on the Area Deaths page in WordPress:

[dadabik_wrapper url=http://www.48ovvi.org/wp/dadabik]

There is nothing else on the page, so when I go to that page (http://www.48ovvi.org/wp/area-deaths) I get a blank page. When I go to www.48ovvi.org/wp/dadabik I get the dadabik home page.

I thought it might be a conflict with the WordPress theme I'm using (EduPress) so I switched themes to one of the generic ones that come with WordPress (twenty twenty) but still no joy.

I was really counting on this to work since we are trying to replace our society's web site now hosted by EasyNetSites and dadaBIK does everything we need it to. I guess we could link out to it from the page, but that's not as seamless.

I can provide you with my logon credentials for WP and dadaBIK if you want to take a closer look. At this point the site is just a proof of concept and is not in production.

Thanks again,
Don
 

eugenio

Administrator
Staff member
Hello,
I think the only problem is that you used http instead of https; your site is on https so you should have

[dadabik_wrapper url=https://www.48ovvi.org/wp/dadabik]

Side note: on your server you should enable an automatic redirect from http to https, that's much more secure.

Best,
 

donworth

Member
One last question which isn't a big deal but would be nice. Is there a way to suppress the dadaBIK navigation (menus) for unauthenticated users coming in via the WordPress wrapper? I would like to use the navigation on my WP site to direct users to different pages that display different dadaBIK forms for different tables. For example, I have Area Deaths (a database of obituaries) and our Library Catalog on different WP pages on our site. I really don't want people going to the Area Deaths page and then navigating with the dadaBIK menu to the Library Catalog form. As I said, it's not a biggie - but would blend dadaBIK into the WP site more seamlessly.

Thanks for all your help, Eugenio!! I think several other genealogical societies may be knocking on your door soon!

Don
 

donworth

Member
PPS. The WordPress plug-in version of the dadaBIK results page does not show Quick Search - the magnifying glass icon takes you straight to the Advanced Search page. I can live with that. But one of our folks put in Par* for a surname and the asterisk caused dadaBIK to switch to a Quick Search panel. Is that intended behavior?
 

eugenio

Administrator
Staff member
Hello,
I am not sure if I understood the first question but if a user has the READ permission on a table, the item always shows up in the menu, there isn't a "Yes but don't show in menu" option as we have for custom page. It could be introduced in a future version, though.
About the search, the one you describe is the normal DaDaBIK behaviour, there isn't any difference between a standard dadabik app and an app embedded in a wordpress page. Probably the current user doesn't have the right permissions to see the quick search fields.

Best,
 

donworth

Member
I appreciate your responses, Eugenio. As I said, these aren't a huge deal for me, however I'm trying to optimize the public-facing view of our data as best I can.

The Quick Search does not appear on the search/results grid page in WP but it does appear when I click on the magnifying glass icon to get to the full (advanced) search and search for an asterisk (*)

You can try it yourself here:

https://48ovvi.org/wp/area-deaths/

Click on the magnifying glass, put an asterisk in the first search field and click search. So it doesn't have anything to do with permissions I think since the user can see QuickSearch one way but not another.

And once you see the quick search, it's very difficult to get out of the QuickSearch screen and back to the results grid. I had to login to dadaBIK and logout again to get it to put me back in the results grid again. (removing the * and doing a Quick Search for a blank field works too). There must be some session parameter that is set but not cleared? I thought maybe it had something to do with the Theme I was using but it behaves the same way for the built-in WP Twenty Twenty WP theme. This is going to be a problem for my users I suspect.

And, w/re the menu - I will likely have more tables in my database eventually that I want to show to unauthenticated users on different WordPress pages (one for Area Deaths, another for Library, etc.), but I would rather these users didn't have access to any of the dadaBIK menus and navigation on any of the WP pages. I want to just create multiple WordPress pages that each go directly to the results grid for different tables (and let the user go to the search panel and details panels for those tables). I'm asking to use WP to do the navigation rather than dadaBIK. That's not a big deal for me tho. Just would be nice.

Don
 
Top