[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have a WP theme.  I need to upload xls to the theme. Can you help me?  The website is www.essmen.com
0
We have moved a WordPress site over to HTTPS, however some of the scripts / css files are still being referenced on http - resulting in a broken site as these requests are blocked due to mixed active content violation.

Summary
* This is a WP site that runs off a menu option of the main site - which is not WP. In other words you have www.domain.com - normal site and from there a link to www.domain.com/blog - this is a WP site specifically to run the blog.
* The site is hosted on one domain but dashboard (wp-admin) is hosted on a different domain
* The requests to the blocked content files are on the admin domain (resource domain which I think is an Amazon S3 bucket - but I don't have confirmation on this - my access is limited)
* Requests to the domain a redirected to https://
* The site url's (admin and site) in the settings were changed to https
* The links in question are not in the database but are generated with the WP enqueue_scripts and enqueue_styles - we have done the URL search and replace on the database but that had no effect on the scripts and JS files
* The Wordpress HTTPS plugin is installed (https://wordpress.org/plugins/wordpress-https) and the SSL Host is configured to be the Admin domain.

I am under pressure to get this working but have N other things to do so don't have to fiddle about with WP.

Hoping someone out there has seen this before and knows what has been missed.


I suspect that as part of the enqueue scripts call because the …
0
Need to create WordPress based photo album

I have a WP site and find the format of Flickr a bit unworkable. For example, I want to provide a URL to my tour attendees, and show my photo library after they provide their First Name and an Email address.

Do you know of any WP plug ins that could help me create a virtual tour image photo gallery?

Thsnks
0
Quote from another wordpress question:
The only file in your root WordPress folder that you should need to keep (given your screenshot) is the wp-config.php file, unless you've got non standard customisations to the site. You should be able to delete the wp-admin and wp-includes folders (these are the "core" folders David mentioned) and reinstall them from a fresh copy of WordPress.

Cleaning a site isn't easy. You'll very likely have infected files in your plugins, and as David mentioned it's quite a process to remove and reinstall them. On top of that, you'll need to:
* reset all admin user passwords in the database, and probably editor and author user passwords too (and maybe more depending on the site)
* change the database user password on the server and in the wp-config.php file
* change the "authentication unique keys and salts" in the wp-config.php file (there's a note in the file on how to do that)

To be completely thorough, the above should be done offline and without opening WordPress, to avoid reinfection part way through. There may also be other things in the WordPress database that are compromised and open the site up for reinfection. I've found that generally I can clean a site manually without being completely thorough, but it does take quite some time.

Updated wordpress version 4.9.8 (from 4.9.x)
I copied the infected site to my  windows desktop computer.
https://wordpress.org/plugins/wp-clone-by-wp-academy/
and copied using …
0
My site went down due to Maria DB increasing in memory usage.  I am running atop and went through the logs and saw it increase in size enough to take the server down.

I ran mysqltuner on the DB and got these results

-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
    Control warning line(s) into /var/log/mariadb/mariadb.log file
    Control error line(s) into /var/log/mariadb/mariadb.log file
    Run OPTIMIZE TABLE to defragment tables for better performance
      OPTIMIZE TABLE `thefruga_smf_test`.`smf_log_errors`; -- can free 47.8366432189941 MB
    Total freed space after theses OPTIMIZE TABLE : 47.8366432189941 Mb
    Restrict Host for user@% to user@SpecificDNSorIp
    MySQL was started within the last 24 hours - recommendations may be inaccurate
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    Adjust your join queries to always utilize indexes
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Performance schema should be activated for better diagnostics
    Consider installing Sys schema from https://github.com/mysql/mysql-sys
    Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: http://bit.ly/2wgkDvS
Variables to adjust:
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit

Open in new window

0
I bought a theme from themeforest.com
If I backup wordpress will I still keep my theme?
Or is there a special unique way I need to backup to keep theme.
0
Hi Experts

Can anyone tell me what a landing page is really?

I assume, just a single page with limited info and a form to collect info?

Does emphasis needs to go into design? Can Wordpress be used, or hand code?

Any info would be appropriated
0
linux shared hosting

how can I back up wordpress
while logged onto wordpress.  
is there a folder and database

I want to do this without cpanel
0
Hi Experts,

I just got Yoast For WordPress Premium and Paid $89, but my account says renew every year.

Their website hints that optional years are only if you want ongoing support and upgrades. Does anyone know if I don't continue with additional years, will my SEO rankings fall and Yoast stop working?
0
I have a php function that I want to call from another php file.  This function creates a button and places a message in Order Notes.  Also, the function isn't the only function in functions.php.

Here is the function
add_action ('woocommerce_before_order_notes', 'member_note', 10); 
function member_note (){
$code = <<< EOT
<button style= "background-color:green; color:white;" onclick="myFunctionMember()">MEMBERSHIP</button>
<script>
function myFunctionMember() {
    document.getElementById("order_comments").innerHTML = "I want membership";
}
</script>
EOT;
echo $code;
}

Open in new window


This function needs to be at the bottom of this yellow box.  https://gyazo.com/fad06970c1cec8be092987e46331a7c3 which is being created with this code.  

<?php if (($val >= 100) && ($val <= 300)) { ?>
<p style="color: black; font-weight:bold; text-align:center; margin:0 auto; background-color: yellow; padding-top:6px; padding-bottom:6px; font-size:16px; font-family:Verdana, Arial, Helvetica, sans-serif;">
		<span class="heading">You've Qualified For FREE SmartStart Membership!</span><br />
		<br />
  $15 product credit for future use, shipping promotions and much more.</span>
	  <br /><br />
	Click The Green Membership Button To Recieve Your Membership Benefits</p>


<?php include('functions.php');
	$returning_value = member_note();								   
echo $returning_value;
 } ?>

Open in new window


This code is at qv_contest.php

You can see my attempt that resulted in this error:

Fatal error: Cannot redeclare member_note() (previously declared in C:\xampp\apps\wordpress\htdocs\wp-content\themes\flatsome-child\functions.php:25) in C:\xampp\apps\wordpress\htdocs\wp-content\themes\flatsome-child\functions.php on line 33

Open in new window

0
I noticed a many new .php files on my shared linux server that I did not create
Some php files had eval command.
I would want to delete this domain but I dont want to ruin the wordpress installation that is already there.

Which files/folders do not belong in a wordpress that has been installed in past year.

wordpress.
0
Greetings mates,

We have been struggling for the past three days trying to connect wordpress to sql server using iis.

We are using iis because management doesn't want us to use WAMP or XAMMP.

Anyway, we used Microsoft web Platform installer to install, PHP and PHP Manager.

Configured, tested and phpinfo is rendered fine.

We downloaded wp-db-abstraction plugin, created a folder called MU-Plugins and put the  wp-db-abstraction plugin inside this folder,  grabbed wp-db.php that came with this plugin and put it inside the wp-content folder.

Then we downloaded sql server driver for php.

The version of php we installed is 5.6 ( I know).

We registered these dlls in php.ini. Then copied these dlls into the php/ext folder.

The version registered is for php 5.6

Then we fired wordpress =  http://servername/index.php and then got this error:

Error establishing database connection

This either means that the username and password information in your wp.config.php incorrect or we can't contact the database server at xxxxxxxxxxxxx.

Are you sure you have the connect username?
Are you sure you have the correct password?
Are you sure you have the correct hostname?
Are you sure database server is running?


Does any one of you experts please help me out on this?

Thank you in advance
0
PHP Error Notice: Notice      Trying to get property of non-object

What am I not understanding about this notice and the way the following is written?

wp_localize_script('tlg_admin', 'tlg_admin', array('screenname' => $screen->base, 'ajax_url' => admin_url('admin-ajax.php'), 'post_id' => $post->ID));

Open in new window

0
Hi Experts

Could you point how to create a custom plugin to prevent that our customizations are lost during updates?

Directly customized theme functions.php

img004
I followed these steps, but something else must to be done to get it working.

1. Create a folder and a file under plugins' folder to customize to avoid directly customize functions.php

img001
2. The plugin is now avaliable
img002
3. But if it's selected, it doesn't exists.
img003
Thanks in advance!
0
I have an anomaly that happens from time to time in my WordPress / WooCommerce Store:

I have a unique UPC code for each product.  The unique UPC is pulled from a pre-existing list in my Options Table.  If I don't manually add the UPC to a product my code goes and grabs one from the options table and then deletes it. However, if more than one person is adding products to the store and they happen to hit save at approximately the same time, the code will issue the same UPC code.  Is there a way to stop this from happening?  Is there a way to speed up the query so if multiple people are listing products or a way to "reserve" a UPC at that moment so another query initialized at the same time does not duplicate the UPC? Delete the used UPC quicker?

      public function custom_product_meta_save($product) {
            if (isset($_POST['_upc'])) {
                if ($_POST['_upc'] != '') {
                    $product->update_meta_data('_upc', sanitize_text_field($_POST['_upc']));
                } else {
                    $available_upcs = get_option('tlg_upcs');
                    $upc_to_use = reset($available_upcs);
                    $product->update_meta_data('_upc', $upc_to_use);
                    $new_upc_list = array_diff($available_upcs, array($upc_to_use));
                    update_option('tlg_upcs', $new_upc_list);
                }
                $product->update_meta_data('_ebay_upc', $product->get_meta('_upc'));
                

Open in new window

0
Hi, running woocommerce for a new site. basically want to get rid of these two highlighted items.
Capture.JPG
The code is:

<ul class="tabs wc-tabs" role="tablist">
                                          <li class="description_tab active" id="tab-title-description" role="tab" aria-controls="tab-description">
                              <a href="#tab-description">Description</a>
                        </li>
                              </ul>
                              <div class="woocommerce-Tabs-panel woocommerce-Tabs-panel--description panel entry-content wc-tab" id="tab-description" role="tabpanel" aria-labelledby="tab-title-description" style="display: block;">
                        
  <h2>Description</h2>

But it's in the tabs file of woocommerce, and I'm not sure how to do this, retain the description itself, but lose the two words "description".

I'm attaching the tabs.php file.
0
I have a custom PHP page saved and used as a template.
The page has a form, when I POST the form, it says page not found?

The the php page I am posting From and To are in the same folder.
I am attempting to post to: https://mydomain.com/net2sellerout.php yet the post
<form action="net2sellerout.php" method="post">

Open in new window

goes to this page: https://mydomain.com/net2seller/net2sellerout.php

Why does it add the additional folder?
0
Footer doesn't display at the bottom of a long page. It displays on top of the text on the page. Here is the link http://101realestateinvesting.com/about-us/
0
I need to have a javascript or jquery button update order notes in Woo Commerce when the button is clicked.  I am on Woo Commerce 3.4.  I know very little of jquery or javascript.

Here is a simplified version of the javascript

<button onclick="myFunction()">Click me</button>

<p id="demo"></p>

<script>
function myFunction() {
  document.getElementById("demo").innerHTML = "I want membership";
}
</script>

Open in new window


So, how do I get the string "I want membership" posted to the order notes box.  I need them in the order notes box so I can see the message in the dashboard for each order.

Thanks,
0
Hello,

I have had a wordpress multisite working for a while now. I have also had subdomains on that site for a while http://ms.abuzztech.com. For some reason now my multi-sites are not working. I can still see the list of sites in the wp-admin page but I am getting:

SORRY!
If you are the owner of this website, please contact your hosting provider: webmaster@realestate.abuzztech.com
It is possible you have reached this page because:

When I try to go to a page  that was a multi-site page like realestate.abuzztech.com. Any ideas where I should look? I checked the wp-config file and .htaccess. Thanks in advance
0
I need help with why this woo commerce function is returning duplicate values.

add_action ('woocommerce_review_order_after_cart_contents', 'display_item_qv', 10);

function display_item_qv () {

	global $wpdb;
	
	//$wpdb->show_errors = TRUE;
//$wpdb->suppress_errors = FALSE;
	
	$val = 0;
	
	foreach( WC()->cart->get_cart() as $cart_item ) {
   $product_in_cart = $cart_item['product_id'];
   

$item_qv = $wpdb->get_row("
SELECT DISTINCT
    p.id AS 'Product ID',
    p.post_title AS 'Product Name',
    t.name AS 'QV'
FROM 
	wp_posts AS p
INNER JOIN
    wp_term_relationships AS tr ON p.id = tr.object_id
INNER JOIN
	wp_term_taxonomy AS tt ON tt.term_taxonomy_id = tr.term_taxonomy_id
INNER JOIN
    wp_terms AS t ON t.term_id = tt.term_id
WHERE 
	tt.taxonomy='pa_qv'
AND 
	p.post_type = 'product'

AND id=$product_in_cart", ARRAY_N);
	

		
		
$val += $item_qv[2] * $cart_item['quantity']; 
	//echo $item_qv[2];
	/*echo "<pre>";
	print_r($item_qv);
	echo "</pre>";*/
	
	}
echo "The total is ". $val;
	//print_r($item}
}

However, it is giving duplicate values and I have been unable to remove the duplicate value.  Please tell me what I need to change to just get one value.  

Here is a screenshot
https://gyazo.com/a442f57ffba799a48417d65a260217a0 - the 12.1 12.1 at the top of the image on the right side should only be 12.1 once. 

If this can't be fixed, please tell me how to use Class WC_Product_Attribute instead.

Open in new window

0
I'm a few months away from starting to take on Freelancing gigs.

I was wondering how to do my books/bill clients.

I had a fantasy about using Laravel to create a separate site on a subdomain that would bill clients and export a CSV. But I've been thinking about using Freshbooks.

I will probably offer subscription services (hosting/maintenance) which I want to bill using the web.

My website will be WordPress.

I'm not sure how to handle billing, and I want to have a good system down when I start. I know that Freshbooks has an API.

What would be the best way to handle this?
0
I used form maker to create a form that pops up after 15 seconds on certain pages. The problem is when I click to close the box, it automatically take me to a page that says OOPs that page can't be found. It's directing it to a website that's in my footer link, after my domain. In other words my site is 101realestateinvesting.com but it redirects it to the link in my footer as part of my domain 101realestateinvesting.com/www.linkinfooter.com
0
Hi Experts

Could you point what's needed to show all the shop categories by using Woocommerce?

I'm using "Storefront" theme
img003
It seens it's limited to show only 03 categories, accordingly to:
img001
But I need to show more categories...
img002
Any suggestion or workaround?

(another more adequated them to use f.e.)

Thanks in advance
0
I've been tinkering with React JS for the past several months now, and just have some questions.  I'm not looking for code .. just information and maybe some links.  Please advise.

1) I'm a bit confused about how security is maintained in React based applications.  I understand that the JS and CSS files get minified and bundled during the build process.  But what about the API keys and login credentials that are buried in the JS files in the site root when deployed?  Can't anyone just view source and extract that info, ... however obfuscated it might be?  I've always wondered why the tutorial videos I've watched never get in to any of  that.  What is it that I'm missing or not understanding?  

2) Why would I ever need or want to use Redux in my React based application?  My understanding is that it would facilitate something like "multiple undo levels" .. or work similar to a web browser's "back" and "next" buttons.  Am I correct in assuming that it's mostly used for debugging / troubleshooting purposes? If not, then what's an example of real life use case scenario?

3) Regarding the new Context API .. is it being regarded as an all-out replacement for Redux?  Or are the two fundamentally different?  If so, how?

4) What other real-time databases are available besides Firebase that work with React, if any?  I'd be most interested in 3rd-party hosted solutions (like Firebase), as opposed to database engines that you'd have to install and configure on your own server.…
0

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.