Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • If you are getting a blank white screen when you call your them in the localhost. This issue I found can be caused by the functions folder in your theme. Check your functions folder and see if there is any white space below the last line of code. If there is remove the excess space or lines of nothing and see if this fixes the error. I had this issue using wordpress and the zerif lite theme, when we added a function to the functions folder and there was excess white space. We are working on a new version of this website [irrelevant link moderated] – I hope this helps you.

    I had a similar issue with white screen when I published a page in my wordpress child theme. I found than when I created a New Page and published it my browser went to a white screen and I would have to hit the back button to get back to the admin panel where the page would be published.

    I turned on the debug in the wp-config.php file (– define(‘WP_DEBUG’, true);—) and that gave me an error when I tried to publish. I subsequently found from this information that the issue was being caused by the functions.php file that I was told to create in my Child-Theme folder. When I removed the functions.php file everything was back to normal.

    Try it and see if it sorts out your problem.

    Another Issue I was getting working with MAMP and WordPress was an inability to access the wp-admin area of the website to add pages, themes etc. After a bit of searching I found an article which informed me that the issue was being caused by the php.ini file which can be found at this path:

    /Applications/MAMP/conf/php.5.4.4/php.ini

    Do a search for zlib.output_compression = Off

    Once you find this change it to

    zlib.output_compression = On

    After you save it Restart your MAMP Apache Servers and try again.

    I know this is an extra bit of info and I hope people are not offended when I publish it here.

    The Author of the article is:

    https://simon-davies.name/mamp/wp-admin-broken-after-updating-wordpress

    Can I ask a question here? I am trying to source some coding/function in order to select the meta-data (i.e. name, address, product, qty, etc) from the order page excluding the prices and I want automate this page so that it automatically emails to a third party for shipping when the order is placed. Anybody got any tips or hints on how to do this. Thanks

    Thread Starter vinsprinter

    (@vinsprinter)

    Hi MacManx,

    I am using Woo Commerce in Conjunction with WordPress.

    Thanks

    Vinsprinter

    Thread Starter vinsprinter

    (@vinsprinter)

    Hi Jack,

    I have tried that last option you have shown me without any success. But I am willing to give it a go again. Otherwise I will try it again tomorrow. I will be back here to let you know how I got on with both methods. Thanks for the trouble taken for now.

    Hi Everybody, Happy New Year and all that!

    I am having the same problem in WordPress. Here is my form code. The form is just one <div> from the home page. The file is saved as .php

    <div class=”form”>

    <form name=”newsletterform” method=”post” action=”process.php”>
    <table>
    <tr>
    <td><label name=”name”>Name:</label></td>
    <td><input type=”text” name=”name” maxlength=”45″ maxsize=”30″ /></td>
    </tr>
    <tr>
    <td><label for email=”email” id=”email” name=”email”>Email*:</label></td>
    <td><input type=”text” name=”email” maxlength = “45” maxsize=”30″ /></td>
    </tr>
    <tr>
    <td><input type=”reset” name=”reset” value=”Reset” /></td>
    <td><input type=”submit” name=”submit” value=”Submit” /></td>
    </tr>
    </table>

    </form>

    </div><!– form div ends here –> `

    This file is saved to my theme Twentythirteen folder. I have also created a process.php file and saved that there also. Problem is that I am getting this error when I submit the form. Here is the process.php page.

    <?php /* Template Name: process.php */ ?>

    <?php 
    
    if(isset($_POST['submit'])) {
    
    	$name = $_POST['name'];
    	$email = $_POST['email'];
    
    	$server = mysqli_connect('localhost', 'root', '', 'saint_stanislaus') or die("The Server Cannot Be Reached at this Time!");
    	//$dbc = mysqli_select_db($server, 'newsletter') or die("There is a problem accessing the databse!");
    
    	$query = mysqli_query($server, "INSERT INTO subscribers (name, email) VALUES('$name','$email')");
    
    	$name = strip_tags($name);
    	$email = strip_tags($email);
    
    	if(empty($name) || empty($email)) {
    
    			echo "All Fields Must Be Filled In!";
    
    		} else {
    
    			echo "You have been successfully subscribed";
    
    			}
    
    }
    
    mysqli_close($server);
    
    ?>

    I have created a page in my admin area called process and instead of using the default I use the template page /*Template Name: process.php*/

    But all I get is this error.

    Not Found

    The requested URL /saint_stanislaus/process.php was not found on this server.

    Any Suggestions?

    vinsprinter

    (@vinsprinter)

    Hi – I am having the same problem and the only way I seem to be able to make style changes to the Woo Commerce end of the site is to copy and paste all the woocommerce.css style into the Twenty Thirteen Style sheet of the website. Then at the bottom of the woocommerce.css within that style sheet I make the changes to the necessary elements so that they come after their initial styling and so override. But as is stated in this debate “what happens when the Twenty Thirteen Theme is updated”

    So here is what I have tried:

    Copied and pasted the woocommerce.css from the plugin/assets/woocommerce.css styling code and pasted it into my Twenty Thirteen Theme/style.css

    Then I tried to implement changes using my Twenty Thirteen Child Theme/style.css. When I tried this no changes were implemented.

    Then I tried pasting the woocommerce.css code into the Twenty Thirteen Child/Style.css as well as leaving the code in the Twenty Thirteen/Style.css file

    Again nothing happened when I implemented some style changes.

    Then I went directly into the TwentyThirteenTheme/style.css and directly under the block of minified, (if that is a word) css code for woocommerce (which I pasted earlier) I effected some changes to the style and they seem to be working.

    So my big issue is this. Do I keep going and maybe make a back-up copy of my main style.css file and store it in the TwentyThirteenChild Theme folder so that when updates to the Twenty Thirteen Theme are effected I just need to copy and the necessary code back into the Twenty Thirteen/Style.css file.

    I understand that this is not the simplest way of doing things, but I have tried lots of other suggestions I seen on forums and none of them worked.

    Also: SplashingPixels made this statement earlier:

    “Every theme is different so you have to first determine what styles file you can use which won’t be erased on the theme update. Good themes will have a way for you to do that.

    Then you would paste the WC styles into that file.”

    Does anybody know how to determine which files will not be erased on theme updates?

    Thanks for any help that might be forthcoming.

    Thread Starter vinsprinter

    (@vinsprinter)

    Takayuki, many thanks for your quick response. I have read your information at this link https://contactform7.com/styling-contact-form/

    I have tried a few different types of style changes with no effect. For example when I cut and paste the code below into my child-theme css it has no effect on the Contact-form 7

    input[type=”text”]
    {
    background-color: #fff;
    color: #000;
    width: 200%;
    }

    Then I tried to get it to work by using the id-“113” of the contact form I want to style, still no change:

    input[type=”text” id=”113″]
    {
    background-color: #fff;
    color: #000;
    width: 200%;
    }

    then I try using this

    .wpcf7 .input[type=”text” id=”113″]
    {
    background-color: #fff;
    color: #000;
    width: 200%;
    }
    Also I have copied the full style.css file from the Contact Form 7 folder and pasted it into my child-theme style.css file. Made some changes and nothing takes effect. I have also checked that the css is making contact with the webpage as I changed the background color as a test on one or two divs to make sure everything is working and it is. (sometimes Dreamweaver text editor can act up a bit)

    And still I try. Any chance you can direct me to where I am going wrong? Thanks for your time.

    Hi, I have used the Design Folio theme for a website I have devleloped. I am finding a problem in styling the footer widget headers and dotted lines. They are very close to each other. When I look at them in firebug and make the change it works fine. But when I put the adjusted code the child theme style.css it just won’t work. Anybody got any suggestions on what might be going on here. As the footer widget header i.e. Recent Posts has a dotted line border at the bottom and it tends to crash into the first post. I need to put some margin at either the bottom of the Widget header or top of the first post div. You can view it here. https://www.webdesigngoogleit.com – Appreciate any help that is forthcoming.

    Hi, I have used the Design Folio theme for a website I have devleloped. I am finding a problem in styling the footer widget headers and dotted lines. They are very close to each other. When I look at them in firebug and make the change it works fine. But when I put the adjusted code the child theme style.css it just won’t work. Anybody got any suggestions on what might be going on here. As the footer widget header i.e. Recent Posts has a dotted line border at the bottom and it tends to crash into the first post. I need to put some margin at either the bottom of the Widget header or top of the first post div. You can view it here. https://www.webdesigngoogleit.com – Appreciate any help that is forthcoming.

    Thread Starter vinsprinter

    (@vinsprinter)

    Hi James,

    Many thanks for that information I have tried it but I am afraid that it is still not happening. Any chance you could take a look at the code below and tell me where I am going wrong.

    home.php (html for the form, in a div called “form” – As you will see I have the shortened url. Initially I have tried it with https://www. as well.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <form action="kitchens4u.ie/report-page/" method="post">
    <label for name="name">Name</label>
    <input type="text" id="name" name="name" length="30" maxlength="60" />
    <label for email="email">Email</label>
    <input type="text" id="email" name="email" length="60" maxlength="60" />
    
    <label for comments="comments">Comments:</label>
    <textarea input type="text" rows"6" columns="20" valign="top"></textarea>
    <input type="submit" value="submit" />
    </form>
    
    And if you can look at this PHP code for the report.php page I would be very grateful.
    
    <?php /* Template Name: report page */ ?>
    
    <html>
    	<head>
    
    	<?php
    
    if (isset($_POST['name']) && isset($_POST['email']) && isset($_POST['comments'])); {
    
    	echo $name = $_POST['name'];
    	echo $email = $_POST['email'];
    	echo $comments = $_POST['comments'];
    
    	if (!empty($name) && !empty($email) && !empty($comments)) {
    
    		if (strlen($name)>60 || strlen($email)>60 || strlen($comments)>150) {
    
    				echo 'The Character Amount has Been Exceeded';
    
    			}
    
    			$to = '[email protected]';
    			$subject = 'You Have A Customer Enquiry';
    			$body = $name . "\n" . $comments;
    			$headers = 'From: ' . $email;
    
    		if (@mail($to, $subject, $email, $comments)) {
    
    			echo 'Thanks For Contact Us! We Will Contact You Soon!';
    
    			} else {
    
    				echo 'Sorry, an error occurred. Please Tray Again Now or Later';	
    
    			}
    
    			}  else {		
    
    				echo 'All Fields Are Required.';	
    
    					}
    			}
    
    ?>
    
    </head>
    </html>

    I appreciate you taking the time and effort to answer my post initially. Thanks James.

    I had the same problem (Using Artificer Free Theme From Woo Commerce) I could not find the file that contained all that code so I used wpShoppingCartReviews.com solution I copied the three add_action snippets of code from the woocommerce-hooks.php file and placed them in the Theme Functions in the editor and it worked like so

    add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
    /* add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_upsell_display’, 15 ); */
    add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );

    I had the third one commented out too for some reason – and the reason for that was that it displays the related products and automatically changes to three different related products on each refresh of the pages. So on second thoughts I have left it in. Thanks Everyone for this information. Now I can move on.

    Hi Mike Jolley,
    Can you tell me why when I put in a products in the Related Products > Upsells the products displays twice on the product page with the words above it You May Like This . . .

    I note from your comment above that Related Products are automatic! Does that mean that when I put a product in the Upsells the Related product is also kicking in – hence I get two of the same products showing at the bottom of the page one directly under the other! If this is so what would be the fix for this?

    Thanks

    I see you are having a problem with Woo Commerce on a local server. I am trying to set up a website on my local server (WAMP) and I seem to be having nightmares with Woo Commerce Variations. Things happening are:

    1. Variations will not stay in order they are put in when you use the drop down menu.

    2. Some variations are not saving the prices and other information inserted. Which in turn makes the attribute/variation no show up on the front end where the customer can select sizes and prices.

    I have been at this for 5 days now on my local pc using a wamp server. Any body else have these kind of problems. I know that a few weeks ago I set these on the same machine and they seemed to stay in position and had no problems with them dropping prices and stock quantities etc. All Help Gratefully Appreciated. I will probably go and see if I have the same problem when I use the live host.

    Thanks

    Hi Mike and everybody else. Here is my problem for the last five days!

    This is going to be a bit of a long email I am afraid.

    Thanks for your reply but I am really having a shit week with these variations. I am attaching some screen shots to see if you can make head nor tail of it as I have had 5 days of nothing but a nightmare scenario. Let me explain.

    1 See image 1d = All the Attributes how they are set in the Configure Terms.

    2. See Figure 1C = How the attributes show when I import them to variations using Link Variations.
    There are 67 attributes/variations in total for a door. The order should start from the smallest size (see image 1d up to the largest so on and so forth).

    3. The attributes show up in the drop down menu on View Page in the right order, i.e. that is in the same order as they appear in the Attributes>Door Sixes>Configure Terms.

    ALSO

    See images: Capture_Var1, Capture_Var1a, Capture_Var_1b

    Capture_Var1 shows the variations with nothing in the boxes, although I have set all the stock to 100 using the edit button at the top and put in a stock quantity of 100. This shows up in most of the variations but not all.

    Capture_var1a shows the variation size 355 X 595 with the stock box filled in with a quantity of 100, the price box filled in with a price and the tax class set to standard.

    Than I hit the UPDATE button.

    Capture _var1b – shows the same variation after the update button has been clicked to save the information in the contents of the variation and still it will not save it.

    Also note between images Var1 and 1b the other variations around variation number #993 in Capture_var1 the numbers above are #982 and #979 and when I save the information I input (although it is not saved) see the numbers above #993 change to #992 and #982.

    As I have explained before (I believe) I have set these variations before only 3-4 weeks ago and they all imported into attributes in the order I required them and when I imported them into variations I went through them one a time using the drop down box and put them all in the right order. Then when I saved them they all stayed in that order.

    So why now do they all keep jumping all over the place, some save the information inserted in each variation and some do not, and if the information is not saving then that size does not show up in the front end on the product drop down list as there is no price to display. How certain can somebody be that all their product prices are showing on the front end each time. Because it seems to me that everytime you use the update button it throws everything into dissarrray.

    If you can recommend a good screencatching video software that I can do a small video for you on what is happening at my end. But I mean in all fairness I have spent 5 days at this now and still getting nowhere. I have even tried to do the sizes and give them a slug of “Door Size 01” all the way up to “Door Size 67” to see if that would keep them in order and it does nothing.

    Is this a bug with your woo commerce because if it is then nobody will be in business long if this is what is happening all the time. And speaking of not being in business for long, I wonder if I will ever get mine off the ground!

    Really, Really Really, Really, Really, Frustrating.

    I hope you can come up with a solution before the end of business today.

Viewing 15 replies - 1 through 15 (of 19 total)