Customer PDF not displaying in Embeded page

Hi all,
I installed this from a ‘oneclick’ installer from my hostings control panel.

I have successfully installed the software to domain.co.uk/invoice
I can successfully log in,
I can have customers successfully log in.

I CANNOT however get the embed the invoice to display to customers on my page domain.co.uk/payments

I get no error, just a blank page.
The invoices are successfully created, emailed and displayed when they customer log in, just not on that embed.

Am I expecting something that doesn’t exist? e.g. display invoice without logging in?
Or have I installed / setup incorrectly?

I have PHP 7.2
Increase php memory to 128M

Please advise as I am desperately moving from waveapps since they shutdown the European customers and need to have a smooth transition

Cheers Neil

Hi,

Are there any errors in the browser console when trying to view the invoice?

No, I see my webpage e.g. header, footers
and I see the page title that I have named the page in Wordpress and thats all.

Have you checked the browser console?

Ahhh great thanks
Found that it is attempting to load the frame in http rather than https

I have my application settings set to HTTPS : Require.

"Mixed Content: The page at ‘https://domain.co.uk/payments/?870w7hts2iktef3mjuklh76zffdk816s/view’ was loaded over HTTPS, but requested an insecure frame ‘http://domain.co.uk/index.php/view/870w7hts2iktef3mjuklh76zffdk816s’. This request has been blocked; the content must be served over HTTPS.

If ‘index.php’ is in the URL it usually means mod_rewrite isn’t enabled

So my wordpress is installed to /wp
I edit the htaccess file so it looks something like this:

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /your-subdirectory/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /your-subdirectory/index.php [L]
</IfModule>

# END WordPress

Is this what you mean?

Cheers Neil

You may want to use a phpinfo page to confirm that mod_rewrite is working

Sorry to trouble you again, and I realise you have supplied excellent information.
But I am still stuggling.

my htaccess file has been stripped back to minimal:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.co.uk$
RewriteCond %{REQUEST_URI} !^/wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /my_subdir/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.co.uk$
RewriteRule ^(/)?$ /wp/index.php [L]

And my index.php in the root has this :
require(’./wp/wp-blog-header.php’);

What would a typical phpinfo file look like for allowing redirects with invoice ninja

https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

OK, done that, not sure where I see that the rewrite module will show as working though.

I kinda understand that I need the htaccess to redirect any InvoiceNinja request to
/public_html/invoice
rather than
/public_html/wp
as they are in different folders

I am just not following how or where, and given that the admin and user login urls are all OK.

I get that there is no set install instructions for this, but there has to be some sort of info on this topic, surely do not need to be a linux expert to get this installed??

Not sure I understand, you shouldn’t need to make any changes to the .htaccess file

OK, I am getting confused myself.
Is that not where mod_rewrite is??

I suggest checking with your webhost for help, the phpinfo page should show you if it’s enabled or not

OK, is there any instructions anywhere that describes how to setup the Client Portal link in the settings

I have tried setting the ‘Link’ and the Website to https://domain.com/payments (doesn’t work)
I have tried setting the ‘Link’ and the Website to https://domain.com/invoice/public/index.php/client/login - This 2nd option take me to a page where the user can login.

But I still CANNOT get the invoice to show on an embeded page.

What is so difficult about this?? Am I expecting something to happen that doesn’t exist??

Can you explain what you mean the ‘link’ and ‘website’?

This is what I am trying to set.

So, Question

  1. I create an invoice and send to the customer, I understand that you can embed some HTML to display this PDF on a page within your own site? Is this where that settings is and if so what url do you enter here? I have tried :
    /payments (A page I have created in Wordpress and entered custom HTML)
    /Invoice (the folder invoice ninja is installed to)
    and as in that image the full path to the customer login section

If you want to use this feature website should point to a page which contains the iframe code shown when clicking the blue question mark.

Ok great. That is exactly what I was expecting.
So I will refer back to my initial question.
I have placed that hmtl on a page called /payments
The link that gets sent in the email is
domain.co.uk/payments/?xrcm1bajyoeyyit6yd0y2v8t1y2n8kfd/view

Nothing displays in the iframe.

So, is there any other settings or diagnostics I should be looking at or checking

Looking at the console I am getting mixed content warnings, but I have https set

Mixed Content: The page at ‘https://domain.co.uk/payments/?xrcm1bajyoeyyit6yd0y2v8t1y2n8kfd/view’ was loaded over HTTPS, but requested an insecure frame ‘http://domain.co.uk/index.php/view/xrcm1bajyoeyyit6yd0y2v8t1y2n8kfd’. This request has been blocked; the content must be served over HTTPS.

So I was advised to look in phpinfo, but not specifically what to look for in that file. I have search the file mod_rewrite and it does not exist. THat is why I went into htaccess to check and that is the only place that I can find mod_rewrite

Cheers Neil

When you log into the app do you see index.php in the URL?