I’m running Firestats 1.6.7-stable on its own database, shared across a bunch of WP sites, and I’m using the 1.6.7-stable WordPress plugin to let each WP site interact with FireStats.
I’ve been using WP and Firestats together for years, and I’ve never seen anything like this. How can WP summarily mark all of the FireStats database tables as having unrepairable errors with a minor security update?
]]>/wp-content/plugins/firestats-installer/js/installer.js.php
]]>This problem was observed by at least one other person, too: wordpress-26-and-firestats
I found out that the page loads until in admin-header.php the menu-header.php is required require(ABSPATH . 'wp-admin/menu-header.php');
Furthermore i looked into menu-header.php and found out that putting the second foreach loop of the admin menu creation part into a comment solved the problem, too.
But disabling some code is not the solution.
So merging these two foreach loops of this section is probably a better idea.
This should do the same as the two loops:
foreach ( $menu as $key => $item ) {
if ( ($key >= 5 && $key < 25) || ($key > 40) ) {
$class = '';
// 0 = name, 1 = capability, 2 = file
if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';
if ( !empty($submenu[$item[2]]) ) {
$submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index.
$menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]);
if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) {
echo "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>";
} else {
echo "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>";
}
} else if ( current_user_can($item[1]) ) {
$menu_hook = get_plugin_page_hook($item[2], 'admin.php');
if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) ) {
echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
} else {
echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>";
}
}
}
}
What did you think a about this? Is this ok? Is this worthy a ticket at Trac (and maybe an improvement for 2.6.2)?
]]>I could get the Widget Popular Posts working very easily, but the PHP code is giving me a lot more trouble.
Could someone give me a sample PHP code for retrieving the 5 most popular posts? I’ve tried doing this with PHP and monumentally failed – I happen to be really bad with PHP.
I’d be very grateful for any help on this!!
]]>Anyone have any ideas what this is? Some kind of trojan type thing?
There have been 6 so far. They come from unknown referrers in countries around the world. All from different ip addresses.
https://www.shaunsmith.ca/index.php?paged=https://www.hitquarters.com/images/cafohu/uqato/
(this one twice, but from different ips & different countries) https://www.shaunsmith.ca/index.php?paged=https://www.salva-sebastien.de/galerie/landschaft/ogiga/mefu/
https://www.shaunsmith.ca/index.php?paged=http%3A%2F%2Fwww.polisgrandhotel.gr%2F_cm_admin%2Fmaillist%2Feditor%2Fplugins%2Fcore%2Fdialogs%2Fsagiyuq%2Fguguvuj%2F
https://www.shaunsmith.ca/index.php?paged=http%3A%2F%2Fwww.meexia.com%2Fblog%2Fwp-content%2Fthemes%2Fsquares%2Fnovofor%2Fhiviga%2F
https://www.shaunsmith.ca/index.php?paged=http%3A%2F%2Fwww.parasolmusic.com%2Fpanel%2Fphpmyadmin%2Fimages%2F.data%2Fcihalil%2Fhabin%2F
]]>I don’t know why all of a sudden my FireStats stats breaking my WordPress layout. I didn’t upgrade anything (wordpress or plugin) just out of no where it started to break the blog.
So i disabled it and my frontpage of the blog is good except for the single page have a look
https://www.pumatalk.com/blog/?p=219 <– sing page
https://www.pumatalk.com/blog <— blog
Let me know what to do.
-Joey
Firstly I have searched extensively for the resolution to this problem, however i’ve had no joy.
Yesterday I installed the firestats 1.3.6 plugin ( i know wordpress is not responsible for individual plugins but please bear with me) and after a few hours of working fine I suddenly received a white screen after making a post. The error message given was this:
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function…
Now I searched on WordPress and other places and found that the most common resolution was to install an SMTP plugin. So to cut a long story shot, I did that but it didn’t help, then I contacted my host and they have told me the following:
“The plugin replaces the wp-mail.php script. Please download a wordpress
install with the correct wp-mail.php and copy it over. This should
restore the correct functioning”
I just wanted to check whether this is the appropriate course of action to take? Also I’m using WordPress 2.2, should I overwrite it with 2.3?
I don’t know how to overwrite without losing the content on my site but i’m sure i’ll find that out vias a search.
Thanks for any help!
PS my site is www. lost-play. com (without the space before .com)
]]>How can I change WP’s username and password so it matches my ftp username and password?
Warning: mkdir(/tmp/fs_sessions/32288) [function.mkdir]: Permission denied in /home/dbmarket/public_html/wp-content/plugins/firestats/php/session.php on line 293
Error initializing sessions directory, read this for help
Failed to create ‘/tmp/fs_sessions/32288’
]]>