44nato44
Forum Replies Created
-
Thanks and I do feel a bit stupid, as I copied from the FAQ [wp_events col=”3″ posts_per_page=”12″]
But for some reason it did not work.
Thanks again
Thanks,
But if the url without “/civtbg” works but the other dont, is that not a bit weird ?
Which is why I am not sure it is a certificate issue.
Thanks again for you help
Hi,
It is a certificate I made my self, but it seems to work fine with https://89.99.187.176/
It is only when I add https://89.99.187.176/civtbg then it seems to not be able to find the site.
Because I am using sub folders, then I thought adding one certificate should be fine ?
I thought that I could just add this one certificate https://thefridaynightprojectsite.wordpress.com/2015/04/30/configuring-ssl-on-apache-http-server-using-openssl/
and it would be okay.Where do you see that the certificate is not valid anymore ?
Thanks
Thanks, that helped 🙂
Forum: Developing with WordPress
In reply to: wpdb get_var not workingThanks for your responses, I took the time to do a 100% verification of my logic and saw I got it wrong.
So it has been resolved, I had to move some functions around to make this work.
Thanks for your answers
Thanks for all your help
Forum: Developing with WordPress
In reply to: Custom function from pluginResolved
Forum: Developing with WordPress
In reply to: Custom function from pluginThanks, I will contact the theme author
Forum: Developing with WordPress
In reply to: Custom function from pluginI get this error – Fatal error: Call to undefined function wpse_58429() in /var/www/html/wp-content/themes/viking/header.php on line 58
Where wpse_58429() is a function in my function file which is called in the header
Any ideas how I can call the function from my plugin ?
I tried to do this –
add_action( ‘call_wpse_58429’, ‘wpse_58429’ );
$current_user = do_action(‘wpse_58429’);
But then I get this error – Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wpse_58429’ not found or invalid function name in /var/www/html/wp-includes/class-wp-hook.php on line 298
I tried then the following –
//add_action( ‘call_wpse_58429’, ‘wpse_58429’ );
$current_user = call_user_func(‘wpse_58429’);
Where I get this error –
Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘wpse_58429’ not found or invalid function name in /var/www/html/wp-content/themes/viking/header.php on line 73
So all in all I am not sure the function gets into my theme from the plugin.
Appreciate any help I can get
I followed the steps, and everything seems to be fine
Please see link where I compare Network settings with my .htaccess file – https://drive.google.com/open?id=0B2qJo8nZDRjRZFN2Y0ZJN2UxWTg
Hrmmm, when I add All then with the .htaccess info I receive from wordpress it will not work.
When Override is None, it work off course.
First I worked on the apache logfile /etc/apache2/ apache2.conf and set
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>That would give the fault 500, so I put it back to None and copied it into
/etc/apache2/sites-enabled and updated 000-default.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>Which also gave the fault 500
Can it be that I have a wrong .htaccess file ?
I dont see an entry for the files, can that be the fault ?
Thanks for the help
Thanks so far,
I tried yesterday to put in the junk line and I did not get a 500 error, so it looked like it did not make a difference.
so I must admit I was not sure what that meant 🙂
So I guess I need to update my config file for Apache
Cheers
Forum: Networking WordPress
In reply to: Unable to add Network Sitescreated a new entry, which makes more sense
Forum: Networking WordPress
In reply to: Unable to add Network SitesThe message I get when trying to open the page or dashboard is The requested URL /NewSite/wp-admin/ was not found on this server.
Forum: Fixing WordPress
In reply to: Unable to use $wpdbThanks cedcommerce,
I was so focused on the “error”, I did the below and both returned a result.
$user_count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->users” );
echo “<p>User count is {$user_count}</p>”;
$building_count = $wpdb->get_var( “SELECT COUNT(*) FROM tbl_Buildings” );
echo “<p>Building count is {$building_count}</p>”;
//$wpdb->print_error();
Thanks for clarifying 🙂