jmessina
Forum Replies Created
-
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] No episodes in feedThanks. I figured out the problem. In order to work correctly with the theme, I needed to turn on “post type podcasting” and select the “risen_multimedia” type to find the content.
Forum: Fixing WordPress
In reply to: Site not loading after changing host IP addressThanks Jackie for your response!
I had thought about building the LAMP stack directly on the laptop, but for a number of reasons I thought building a VM was the best route. I suppose I could put a GUI on the Linux VM and access the site that way.
However, I’m wondering if there might be a bug in WordPress or maybe with the installation package in Arch Linux. I may be wrong, but from everything I’ve read, it sounds like defining WP_HOME and WP_SITEURL in the wp-config.php file should override the home and siteurl values in the database. That doesn’t seem to be the case. I’ve discovered that even though those entries are overridden (entries for both grayed out on the admin settings page), the site still attempts to use the database values. Eventually the site will resolve, but it’s pretty much just raw data that comes back – no formatting.
I have come up with a workaround. I’ve written a new routine that updates the database values instead of overriding them.
<?php $host_ip_addr = shell_exec("ip address show enp0s3 | grep inet | grep -v inet6 | awk {'print $2'} | sed 's/\/.*//'"); $host_ip_addr = preg_replace('/\s+/','',$host_ip_addr); $host_url = "https://".$host_ip_addr."/wordpress"; echo "<pre>Setting WordPress to $host_url</pre>"; $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'xxxxx'; $dbname = 'wordpress'; $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "UPDATE wp_options SET option_value='$host_url' WHERE option_name='siteurl'"; if($conn->query($sql) == TRUE) { echo "<pre>Updated siterul successfully</pre>"; } else { die('Could not update siteurl: ' . $conn->error); } $sql = "UPDATE wp_options SET option_value='$host_url' WHERE option_name='home'"; if($conn->query($sql) == TRUE) { echo "<pre>Updated home successfully</pre>"; } else { die('Could not update home: ' . $conn->error); } $conn->close(); ?>
But, I would like to confirm if this is either a bug in WordPress, a problem with the package installation in Arch Linux, or my error.
Forum: Fixing WordPress
In reply to: Apache page showing instead of wordpress page# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /valleyho_ccov/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /valleyho_ccov/index.php [L]
</IfModule># END WordPress
Forum: Fixing WordPress
In reply to: Apache page showing instead of wordpress pageit is not at that level either.