PHP-Error

camjup
29 Posts
camjup posted this 01 March 2019
Ask a Question

hi,

after uploading the site I have php error in the script from <?php echo "semikolon fehlt"?> is automatically <?php echo &quot;semikolon fehlt&quot;?>

What can I do?

hi, after uploading the site I have php error in the script from &lt;?php echo &quot;semikolon fehlt&quot;?&gt; is automatically &lt;?php echo &amp;quot;semikolon fehlt&amp;quot;?&gt; What can I do?
Vote to pay developers attention to this features or issue.
14 Replies
Order By: Standard | Newest
camjup
29 Posts
camjup posted this 02 March 2019

Nobody has an idea?

Nobody has an idea?
Support Team
Support Team posted this 04 March 2019

Hi Martina,

Could you please provide a bit more details about the problem. You have a PHP error on the site after uploading the Nicepage theme? Or after installing the content? Please attach a screenshot of the error message. If you think that the problem is related to the theme, please attach that theme to the ticket.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Martina, Could you please provide a bit more details about the problem. You have a PHP error on the site after uploading the Nicepage theme? Or after installing the content? Please attach a screenshot of the error message. If you think that the problem is related to the theme, please attach that theme to the ticket. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
camjup
29 Posts
camjup posted this 04 March 2019

I enter the php-code in nicepage-site:

<? php php?> echo "Sample PHP";
?>

then I export the site and in the html file is then in the source text:

<section class id>

<div class = "u-clearfix u-sheet u-sheet-1">
    <div data-custom-php = "<! - custom_php -> <? php

echo & quot; Sample PHP & quot ;;

?> <! - / custom_php -> "class =" u-custom-php u-custom-php-1 ">

</ Div>

---> " is replaced by ---> & quot;

I enter the php-code in nicepage-site: &lt;? php php?&gt; echo &quot;Sample PHP&quot;; ?&gt; then I export the site and in the html file is then in the source text: &lt;section class id&gt; <div class = "u-clearfix u-sheet u-sheet-1"> <div data-custom-php = "<! - custom_php -> <? php echo & quot; Sample PHP & quot ;; ?> &lt;! - / custom_php -&gt; "class =" u-custom-php u-custom-php-1 "> </ Div> ---> " is replaced by ---> & quot;
Support Team
Support Team posted this 05 March 2019

Hi Martina,

Unfortunately, PHP control is not available for static HTML websites. It can be used for CMS templates/content only.
Nicepage creates simple static HTML websites. If you want to convert the exported website to php project you can do it manually.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Martina, Unfortunately, PHP control is not available for static HTML websites. It can be used for CMS templates/content only. Nicepage creates simple static HTML websites. If you want to convert the exported website to php project you can do it manually. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
camjup
29 Posts
camjup posted this 05 March 2019

If you want to convert the exported website to php project you can do it manually

No I do not want that, but it would be good if you could paste php scripts in html sites and it does not always have to manually add. that was unfortunately also the case with artisteer.

> If you want to convert the exported website to php project you can do it manually No I do not want that, but it would be good if you could paste php scripts in html sites and it does not always have to manually add. that was unfortunately also the case with artisteer.

Last edited 05 March 2019 by camjup

Support Team
Support Team posted this 05 March 2019

Hi,

In any case, you need to change the file extension from .html to .php. Otherwise, in most of the cases, php script inside .html file will not be rendered by the server. Both Nicepage and Artisteer exports static HTML websites only.
But we added your request to our wish list.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, In any case, you need to change the file extension from .html to .php. Otherwise, in most of the cases, php script inside .html file will not be rendered by the server. Both Nicepage and Artisteer exports static HTML websites only. But we added your request to our wish list. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
camjup
29 Posts
camjup posted this 05 March 2019

html via htaccess:

<filesmatch ".html$">

Options +ExecCGI
SetHandler fcgid-script

FcgidWrapper /var/www/webxxx/conf/php5/php-fcgi-starter .html

html via htaccess: &lt;filesmatch &quot;\.html$&quot;&gt; Options +ExecCGI SetHandler fcgid-script FcgidWrapper /var/www/webxxx/conf/php5/php-fcgi-starter .html
Support Team
Support Team posted this 06 March 2019

Hi Martina,

Looks like you have found a solution. Please let us know if you need further help.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Martina, Looks like you have found a solution. Please let us know if you need further help. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
camjup
29 Posts
camjup posted this 06 March 2019

No, unfortunately not, the error is still as written.

that would be just a solution that you do not have to rename the page from html to php.

No, unfortunately not, the error is still as written. that would be just a solution that you do not have to rename the page from html to php.
Support Team
Support Team posted this 06 March 2019

Hi Martina,

As explained before, we do not have such plans and the PHP control is for the CMS exports only.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Martina, As explained before, we do not have such plans and the PHP control is for the CMS exports only. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
camjup
29 Posts
camjup posted this 06 March 2019

It would still be my wish, there are not only cms. :-)

It would still be my wish, there are not only cms. :-)
Support Team
Support Team posted this 06 March 2019

Hi Martina,

Sure, this option is added in our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Martina, Sure, this option is added in our wishlist. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
geoff3
13 Posts
geoff3 posted this 18 November 2019

I have noticed that PHP is broken in HTML exports.

Example:

if ($mysqli->connect_errno) {

echo "An error occurred: " . $mysqli->connect_error . "";

exit;
}

is exported as:

if ($mysqli->connect_errno) {

echo &quot;An error occurred: &quot; . $mysqli->connect_error . &quot;&quot;;

exit;
}

So simply renaming the exported file name to a .php file is not going to work even though it would make Nicepage a lot more developer-friendly if it did.

I understand the approach to having the php function in cms templates, so you can make extra MySQL query calls and alike but it is also sensible to support independent exports of files that function correctly. Not everybody uses WordPress or Joomla on every website, actually, those applications can be bloatware and introduce unnecessary maintenance and security problems in situations when you only need a few simple PHP pages to read and display data from a database CRUD system.

I have noticed that PHP is broken in HTML exports. Example: if ($mysqli->connect_errno) { echo "An error occurred: " . $mysqli->connect_error . ""; exit; } is exported as: if ($mysqli->connect_errno) { echo &quot;An error occurred: &quot; . $mysqli->connect_error . &quot;&quot;; exit; } So simply renaming the exported file name to a .php file is not going to work even though it would make Nicepage a lot more developer-friendly if it did. I understand the approach to having the php function in cms templates, so you can make extra MySQL query calls and alike but it is also sensible to support independent exports of files that function correctly. Not everybody uses WordPress or Joomla on every website, actually, those applications can be bloatware and introduce unnecessary maintenance and security problems in situations when you only need a few simple PHP pages to read and display data from a database CRUD system.
Support Team
Support Team posted this 19 November 2019

Hi,

Thanks for your opinion, it is counted in our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Thanks for your opinion, it is counted in our wishlist. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments