Problem showing SPA (Single Page App)


#1

I am sure the answer to this is simple but I just can’t work it out. I have been trying to get an SPA to work in it’s basic form but the Content Page does not show.

The hierarchy shouldn’t affect it but let me explain…
The path to my admin root is C:\wamp\www\daviesandgray.co.uk\httpdocs\httpdocs\admin which is where I am working, the basic html website root is located one level up at C:\wamp\www\daviesandgray.co.uk\httpdocs\httpdocs (don’t ask why there are two httpdocs directories, it’s something I inherited!)

OK, I have WAMPSERVER 2.5, Apache 2.4.9, PHP 5.5.12, MySQL 5.6.17 on Windows 10 and the filter_module is on.

image

Use Routing and Auto Add Base are also switched on

image

The full paths as shown in the Project Settings are
Web Server URL: http://192.168.0.59/daviesandgray.co.uk/httpdocs/httpdocs/
Local Folder: file:///C:/wamp/www/daviesandgray.co.uk/httpdocs/httpdocs
And the .htaccess file only has the following as there was no existing .htaccess file

image

I have set the Routing up with one route as follows

image

I have then saved my Section as a Content Page called ‘dashboard’

image

This is how the code looks for my first two Content Pages

and yet nothing shows in the Wappler Design View or in a web browser.
What am I doing wrong, or what am I not doing?


#2

Just guessing but can you update your PHP from version 5 to version 7?


#3

Cheers @brad, so you think it might need PHP 7 to work? Hadn’t thought of that one and don’t recall seeing anything mentioned about the need to be on later PHP. It doesn’t matter though as I’ve thought of upgrading anyway so now may be the time to do it.

I’ll try updating my package later. Is this something you have done? Is it straightforward?

@patrick, @George, @Teodor is @brad correct in suggesting that I should be using PHP 7?


#4

There are reported & identified bugs with both server & client side routing in 1.9.3 - to be fixed in next update.
I am not sure if you are affected by it, but just to be sure, wait till tomorrow’s update and see if the issue persists.


#5

There were indeed problems in saving the page routes to the global routing and will be fixed in the next update


#6

he means tomorrow :smile::ok_hand:t5::white_check_mark:


#7

This has been fixed in Wappler 1.9.4


closed #8

archived #9

unlisted #10