0
Answered

Embedded page not showing anymore?

Gianluca Baio 4 years ago updated by Christian Fritz 4 years ago 5

Hi all,

I am not sure I'm missing something obvious, but I think I have a problem with my embedded page. If I try opening using the full address:

https://bibbase.org/show?bib=http://www.statistica.it/gianluca/Publications/mypubs.bib&theme=simple&authorFirst=1&group0=year

all seems to work OK. But when I point to the address to which I'm redirecting

www.statistica.it/gianluca/Publications

nothing happens --- the page is just blank. It did work until a few days ago. I don't think there's a mistake in one of the new entries in the bib file --- but I may be mistaken?


Any idea of what might be going on?

Thanks!

Gianluca


Answer

Answer
Answered

In case anyone else has been seeing this problem: this should be resolved now, i.e., PHP embedding should work again as before.


Under review

Hi Gianluca,


Sorry to hear that. Could you tell me how you are embedding? (php?) The page is completely empty, which tells me that your web server is probably having trouble fetching the bibbase html. I suspect that is due to the release of HTTPs support which will redirect from http to https now.


I'm not sure why your web server is not following the redirect he is receiving on the http:// address, but one way or another you can fix this by changing your bibbase url to the new one, i.e., simply replace http:// with https:// in your embedding code.


Please do let us know though how you are embedding (and ideally also what web server you are running, if you know that), so we can investigate further and save other users from the same troubles.


Thanks!

Thank you Christian,

I'm using php to embed the page in my website --- this is the code I'm using:


<?php $contents = file_get_contents("https://bibbase.org/show?bib=http://www.statistica.it/gianluca/Publications/mypubs.bib&theme=simple&authorFirst=1&group0=year"); print_r($contents); ?>

(I've just added the https to my website address, but to no avail...). I'm not sure about the details of my server --- sorry. Is there any other way I can try and help you help me?


Many thanks!!
Gianluca





OK, it seems that PHP by default doesn't allow https requests. A certain extension would need to be loaded and that may be outside of your control.


Would you be OK switching to JSONP for embedding? It is the newer, simpler method and should work out of the box. If so then just replace your php tag with this:

<script src="https://bibbase.org/show?bib=http://www.statistica.it/gianluca/Publications/mypubs.bib&theme=simple&authorFirst=1&group0=year&jsonp=1"></script>

Once again, sorry this is happening. I know this should be necessary. We will work out a solution that won't break existing PHP embeddings, but if you want an immediate solution, the one above is actually a good choice.


Christian, no need to apologise --- in fact, I should thank you again for looking into this so promptly and for providing such a great service as bibbase!


I think your suggestion works --- I've just modified the index.php page and now the list of references is uploaded!

Many thanks

Gianluca

Answer
Answered

In case anyone else has been seeing this problem: this should be resolved now, i.e., PHP embedding should work again as before.