SMThemes Support » Architecture
Form not showing
10 years ago
JWill
Member
Hi all, i am using architecture in local to figure it out before purchasing and moving on remote. The problem is that the form is not showing at all, when i click on the main menu the only thing i get is a white page...
i am an absolute beginner with wordpress and can't figure out where am doing wrong. any help? TNX |
10 years ago
Alice
Support Service
Hi!
Which form is not displayed?Could you attach a screenshots? |
10 years ago
JWill
Member
Hi!
I simply created a new page and chose "contact form" from the "template" box in the lower right (as stated in the template itself: "To add contact form to your web site, create new page and choose "Contact form" template")... i didn't do any change, i thought it was maeant to appear automatically...if i install an external extra plug in it seems to work, the one that doesn't is the one provided with the template. Tnx |
10 years ago
Dave
Support Service
It really works. Did you try to remove the footer links? This can cause some problems. Could you send us a screenshot if you build a website on a local host.
|
10 years ago
JWill
Member
Hi. i moved what i did so far on a free hosting service, here is the link to it. the form should appear in the last menu item called "Contatti" (italian native speaker):
http://architectures.altervista.org (architecture was already taken) "Did you try to remove the footer links?"--->No sir, i am not able to work on php or style sheets. by the way, i am having some trouble even with google's analytics code, i put it in header then in top.php and i even used the box in the dashboard as you suggested to someone else here in the forum but none of them seems to work... it says that nobody has seen the site, but the free service of the hosting states that every day there's someone who actually visits the site...where am i doing wrong?? Tnx |
10 years ago
wwarren
Member
Just started trying to use architecture myself today and came looking for an answer to the exact same problem. My page is temporarily available while I'm working on it at larry.waltwarren.com. Footers are intact as well on mine. I filled in some of the contact form info, then created a new page, left it blank and chose the contact form template. Got a plain white blank page. Used Chrome's View Source Code and got nothing. Edited the page to give it a name "Contact Form" and the word Test in the body, and still get just a blank page.
|
10 years ago
Alice
Support Service
Hi!
Could you turn on the option wp-debug to get more information about the error? You can do it in the wp-config.php in the root directory of your WordPress. Just find string there, and replace it with
|
10 years ago
JWill
Member
Hi
Done Tnx |
10 years ago
wwarren
Member
That line didn't already exist to edit, but I've added it.
|
10 years ago
wwarren
Member
Ooh. Lots of errors. From the homepage:
"Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /var/www/wgtest/wp-includes/functions.php on line 2908 Notice: Undefined variable: supported in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match(): Compilation failed: missing ) at offset 166 in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match(): No ending delimiter '/' found in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Notice: Undefined index: page in /var/www/wgtest/wp-content/themes/architecture/inc/administrator.php on line 16 Notice: Undefined variable: descr in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 457 Notice: Undefined variable: descr in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 458 Notice: Undefined variable: keywords in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 462 From the contact form page: Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /var/www/wgtest/wp-includes/functions.php on line 2908 Notice: Undefined variable: supported in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match(): Compilation failed: missing ) at offset 166 in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match(): No ending delimiter '/' found in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 391 Notice: Undefined index: page in /var/www/wgtest/wp-content/themes/architecture/inc/administrator.php on line 16 Parse error: syntax error, unexpected T_VARIABLE in /var/www/wgtest/wp-content/themes/architecture/feedback.php on line 19 |
10 years ago
wwarren
Member
There's an odd thing happening around line 391 in the library.php file. There are several instances of a string $params and $defparams. But when I use a particular editor that colors coding, those show up odd. I loaded that file in another editor and it shows a curious glitch which I've highlited. I don't know if that could be causing a problem or not. The 8 highlighted items are the only ones like that in the file.
|
10 years ago
wwarren
Member
Fixing those 8 occurrences of $pаrams and $defpаrams so they're $params and $defparams breaks the file to a point that nothing works at all. "Fatal error: Cannot use string offset as an array in /var/www/wgtest/wp-content/themes/architecture/inc/library.php on line 377."
At this point, I've exhausted my pretty much non-existent PHP knowledge, so I'll leave a fix up to you, Alice. |
10 years ago
wwarren
Member
Found the contact form problem. On line 19 of /wp-content/themes/architecture/feedback.php, there is a mismatch in parentheses.
Add a parentheses between wp_mail and $SMTheme so it looks like this and the page loaded (at least for me.)
Alice, let us know if that's not where it should really go or not. |
10 years ago
JWill
Member
Hi all. this is what i get from the form page:
Notice (TRANSLATED FROM ITALIAN, ONLY THIS ROW): get_theme_data is deprecate since version 3.4! Use wp_get_theme(). in /membri/architectures/wp-includes/functions.php on line 2908 Notice: Undefined variable: supported in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 166 in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Notice: Undefined index: page in /membri/architectures/wp-content/themes/architecture/inc/administrator.php on line 16 Parse error: syntax error, unexpected T_VARIABLE in /membri/architectures/wp-content/themes/architecture/feedback.php on line 19 Now it pops up even this from the header: Notice (TRANSLATED FROM ITALIAN, ONLY THIS ROW): get_theme_data is deprecated since 3.4! Use wp_get_theme(). in /membri/architectures/wp-includes/functions.php on line 2908 Notice: Undefined variable: supported in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 166 in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 391 Notice: Undefined index: page in /membri/architectures/wp-content/themes/architecture/inc/administrator.php on line 16 Notice: Undefined variable: descr in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 457 Notice: Undefined variable: descr in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 458 Notice: Undefined variable: keywords in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 462 Notice: Undefined variable: class in /membri/architectures/wp-content/themes/architecture/inc/library.php on line 354 class="home page page-id-27 page-template-default logged-in content-r" layout='2'> Hope this helps in identifying the problem.i am gonna get the file back to "false", i am concerned about security. Tnx |
10 years ago
Alice
Support Service
Hi all!
Unfortunately, these warnings and notices are not strict and can't cause the problem with your contact form. The real problem is the bug on the line number 19. Please, replace the line: |
10 years ago
JWill
Member
Hi! Now it works. Many thanks. Is there a way to put in it a captcha code??
|
10 years ago
Dave
Support Service
All changes such as change background, change font, or add new elements, etc you can do by yourself editing css and html at your own risk.
We don't provide any services, paid or unpaid, for editing themes for individual users. Probably, to add captcha code you have to edit the file feedback.php. |
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts