Welcome! To use this support forum, please Login or Join Today!

You are here → Home :: Forum Home :: General WordPress :: WordPress :: Thread

   

error on contact page

{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
Hi I'm getting the following error on my contact page

https://nz-website-solutions.co.nz/demopresstige/contact-me/

Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of GetColStyle(). in /home/petesweb/public_html/demopresstige/wp-content/themes/Presstige/contact-form.php on line 17
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Hi, It looks like you're running v.1.9.3.
https://nz-website-solutions.co.nz/demopresstige/wp-content/themes/Presstige/style.css

The current version is 1.9.4 which addresses the problem you're seeing with PHP5.

Also, renaming the template folder to "Presstige" instead of "presstige" will cause CSS3 rendering problems in >IE7.
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
Thanks for the fast reply, I down loaded the latest theme version do I just ftp overwrite the old files? would I lose any changes I've made?
also I rename the Presstige to presstige but the site now comes up blank!
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Do I just ftp overwrite the old files?

Yes, you can refer to the changelog here:
http://www.simplethemes.com/wordpress-themes/changelog/presstige

You should be able to just update the *.php files without losing your customizations. I'm assuming you're only customizations are to CSS. You will probably want to back up just to be on the safe side.


I rename the Presstige to presstige but the site now comes up blank


You may need to re-activate the theme in wp-admin → Appearance → Themes


{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
OK I made the changes but the contact email system is not showing in the page https://nz-website-solutions.co.nz/demopresstige/contact-me/
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
jake1 - 22 September 2013 03:19 AM
OK I made the changes but the contact email system is not showing in the page https://nz-website-solutions.co.nz/demopresstige/contact-me/


bump
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
It looks like there are a *ton* of javascript errors on the page you pointed out. I'm looking into this now to ensure it's nothing on the theme side (Presstige is about 3 years old). It also seems like you're still on v.1.9.3 for whatever reason.

https://nz-website-solutions.co.nz/demopresstige/wp-content/themes/presstige/style.css

As for the contact form, I see that it was removed in the changelog. I'm sorry I failed to remember that when you originally posted. The reasoning is that there are robust free plugins that do a much better job of something that should not have been included in the theme to begin with.

The contact page template still exists and will show the Google Map and sidebar location, but the functionality you need is in Contact Form 7.
http://contactform7.com/

Once you create a form, it'll give you a shortcode. Just drop that into a Page using the Contact Page template, you should get the results you need.
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
I just checked the theme and it appears the javascript errors are related to the SSL/HTTPS connection.
https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
Thanks Casey I've taken the SSL connection off are you able to check the javascript errors, also with my demo http://nz-website-solutions.co.nz/demopresstige/ site are you able to tell me how to use cookies to change the color scheme the way your site dose in the menu selection. I'm willing to pay for this info.

You help is much appreciated
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Sure, All I did is install the cookie monster plugin and in header.php, changed the reference to style{x}.css to this:


<?php
// demo
$stylecookie = $_COOKIE['style'];
// available styles
$styles = array(
 0 => "style1",
 1 => "style2",
 2 => "style3",
 3 => "style4",
 4 => "style5",
 5 => "style6",
 6 => "style7");
if (in_array($stylecookie, $styles)) {
echo '<link href="'.get_bloginfo('stylesheet_directory').'/'.$stylecookie.'.css" rel="stylesheet" type="text/css" media="screen" />';
} else {
echo '<link href="'.get_bloginfo('stylesheet_directory').'/'.getStyle($themestyle).'.css" rel="stylesheet" type="text/css" media="screen" />';
}
// end demo
?>


In the cookie monster plugin settings, just create a value named "style" and set it's default to style1 or whichever you want to use as default.
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
Thanks for the info, are you able paste in where to put that code I cant work out.
thanks for your help.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Can you post your code to hastebin.com please?
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
Casey - 24 September 2013 12:29 AM
Can you post your code to hastebin.com please?


Here it is

http://hastebin.com/xohudasepa.xml
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Here you go. Changes begin on lines #56 - #74.
http://hastebin.com/wuyubuwevu.php
{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 
I put these settings in cookie monster

URL Parameter 1: style defaults to: style1 cookie duration is (defaults to 30 days) 30

How do I set the menu

URL
Link Relationship (XFN)
CSS Classes (optional)

Thanks for all your help it much appreciated



{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

URL
Link Relationship (XFN)
CSS Classes (optional)


I'm not sure what you mean there.