contact form plugin - how to activate?

User avatar
nox
Posts: 69
Joined: Sat May 23, 2020 9:02 pm

Re: contact form plugin - how to activate?

Post by nox »

That's odd.

I just tried adding contact form code below content and aside on both themes (Parallax and Sky) and Contact form is displayed correctly.
WonderCMS 3.5.0 and Contact form 3.5.3

Code: Select all

<?= $Wcms->page('content') ?>
<?php echo contact_form(); ?>
and

Code: Select all

<?= $Wcms->page('subside') ?>
<?php echo contact_form(); ?>
Of course, contact form should be placed at one of the above positions, not both.
User avatar
nox
Posts: 69
Joined: Sat May 23, 2020 9:02 pm

Re: contact form plugin - how to activate?

Post by nox »

Something else about Contact form, it's blocking Settings modal to open on the page where contact form is specified.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post by WonderingHow »

Parallax version 3.2.2
Contact form 3.5.3
Wonder CMS version 3.5.0
Chrome browser Version 136.0.7103.114 (Official Build) (64-bit)

It's not blocking modal for me on the page where the form is (or where it's meant to be).
User avatar
nox
Posts: 69
Joined: Sat May 23, 2020 9:02 pm

Re: contact form plugin - how to activate?

Post by nox »

Could you replace contact form code with:

Code: Select all

<?php echo "Hello"; ?>
and check if your website shows Hello.

About Settings modal, it's not related, I'll open a new thread if I can reproduce it.
User avatar
wiz
Posts: 809
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post by wiz »

Odd.

1. Which PHP version and server type are you using?
2. Does any error_log file generate in your WonderCMS installation or plugin folder?

I'm leaning towards the assumption that either your requirements, or server setup might not be allowing the contact form to display.

This can include:
- cURL being disabled
- the plugin uses the mail() function for sending emails. This function requires a properly configured SMTP server or local mail server. Most hosts already provide this by default.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post by WonderingHow »

nox wrote: Sat May 17, 2025 5:24 pm Could you replace contact form code with:

Code: Select all

<?php echo "Hello"; ?>
and check if your website shows Hello.
It does say hello when I do this.

When I echo the contact form, I have checked with View Source in the browser, and nothing at all is there in the code, although the spacing is slightly different.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post by WonderingHow »

Php 8.1 with curl, and the other requirements. Apache 2.4.63
I think the mail server is configured but if there is a problem with that, could that really be a reason why the whole form is just not showing?

[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$title in /public_html/index.php on line 2123
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$description in /public_html/index.php on line 2124
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$keywords in /public_html/index.php on line 2125
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$title in /public_html/index.php on line 2123
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$description in /public_html/index.php on line 2124
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$keywords in /public_html/index.php on line 2125
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$title in /public_html/index.php on line 2123
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$description in /public_html/index.php on line 2124
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$keywords in /public_html/index.php on line 2125
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$title in /public_html/index.php on line 2123
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$description in /public_html/index.php on line 2124
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$keywords in /public_html/index.php on line 2125
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$title in /public_html/index.php on line 2123
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$description in /public_html/index.php on line 2124
[17-May-2025 02:45:27 UTC] PHP Warning: Undefined property: stdClass::$keywords in /public_html/index.php on line 2125
[17-May-2025 07:58:23 UTC] PHP Warning: require_once(/public_html/themes/parallax-jo-anne/theme.php): Failed to open stream: No such file or directory in /public_html/index.php on line 1805
[17-May-2025 07:58:23 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/public_html/themes/parallax-jo-anne/theme.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /public_html/index.php:1805
Stack trace:
#0 /public_html/index.php(213): Wcms->loadThemeAndFunctions()
#1 /public_html/index.php(16): Wcms->render()
#2 {main}
thrown in /public_html/index.php on line 1805
[17-May-2025 07:58:25 UTC] PHP Warning: require_once(/public_html/themes/parallax-jo-anne/theme.php): Failed to open stream: No such file or directory in /public_html/index.php on line 1805
[17-May-2025 07:58:25 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/public_html/themes/parallax-jo-anne/theme.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /public_html/index.php:1805
Stack trace:
#0 /public_html/index.php(213): Wcms->loadThemeAndFunctions()
#1 /public_html/index.php(16): Wcms->render()
#2 {main}
thrown in /public_html/index.php on line 1805
[17-May-2025 07:58:30 UTC] PHP Warning: require_once(/public_html/themes/parallax-jo-anne/theme.php): Failed to open stream: No such file or directory in /public_html/index.php on line 1805
[17-May-2025 07:58:30 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/public_html/themes/parallax-jo-anne/theme.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /public_html/index.php:1805
Stack trace:
#0 /public_html/index.php(213): Wcms->loadThemeAndFunctions()
#1 /public_html/index.php(16): Wcms->render()
#2 {main}
thrown in /public_html/index.php on line 1805
[17-May-2025 11:45:59 UTC] PHP Fatal error: Uncaught TypeError: Wcms::getDb(): Return value must be of type stdClass, null returned in /public_html/index.php:981
Stack trace:
#0 /public_html/index.php(109): Wcms->getDb()
#1 /public_html/index.php(14): Wcms->__construct()
#2 {main}
thrown in /public_html/index.php on line 981
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post by WonderingHow »

@nox @wiz? If no reply I will just find another way of adding a contact form or maybe use another cms
User avatar
wiz
Posts: 809
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post by wiz »

Still haven’t gotten around to checking your logs and trying to debug what might go wrong with your installation/server requirements. I’m usually more active over the weekends, when we are all off work and life duties.

I support both ideas in the meantime, if your problem isn’t solved it’s always good to have backup options.

Edit: does your contact-form plugin folder possibly also contain any errors?
User avatar
nox
Posts: 69
Joined: Sat May 23, 2020 9:02 pm

Re: contact form plugin - how to activate?

Post by nox »

WonderingHow wrote: Mon May 19, 2025 9:36 am
nox wrote: Sat May 17, 2025 5:24 pm Could you replace contact form code with:

Code: Select all

<?php echo "Hello"; ?>
and check if your website shows Hello.
It does say hello when I do this.

When I echo the contact form, I have checked with View Source in the browser, and nothing at all is there in the code, although the spacing is slightly different.
I was thinking maybe there was a missing closing ?> somewhere, but if that was the case, it would show an empty (blank) page.
Not sure what to do to fix errors from the log, but this path:

Code: Select all

(include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php')
Are you using paid or free hosting? If it is paid, I would ask hosting provider for support on those errors.
Post Reply