saevare
Forum Replies Created
-
Forum: Plugins
In reply to: [StatPress] mysql errors on all websites using statpressI forgot to tell what os and program i’m using, i use FreeBSD 10, PHP 5.6.5 (cli) (built: Feb 1 2015 12:32:25), Apache/2.4.12 Server built: Feb 1 2015 11:47:37 and MySQL Version 5.5.41
Forum: Plugins
In reply to: [StatPress] mysql errors on all websites using statpressBut i have a problem with this 4 lines, line 376, 449, 520 and 590 in statpress.php, all the line have the same text
$qry_tmonth->target = round($qry_tmonth->visitors / (time() - mktime(0,0,0,date('m'),date('1'),date('Y'))) * (86400 * date('t')));
And the error that i get is Warning: Creating default object from empty value in /wordpress/wp-content/plugins/statpress-reloaded/statpress.phpForum: Plugins
In reply to: [StatPress] mysql errors on all websites using statpressThis problem can be fix quick by using sed
find /wordpress/wp-content/plugins/statpress-reloaded/ -type f -exec sed -i -e 's/mysql_real_escape_string/esc_sql/g' {} \;This did the trick for me
find /folder/foobar/www/ -type f -exec sed -i -e ‘s/mysql_real_escape_string/esc_sql/g’ {} \;Forum: Plugins
In reply to: [FG Joomla to WordPress] MYSQL_ATTR_INIT_COMMANDSorry for this post, i just haf to install /usr/ports/databases/php5-pdo_mysql and put extension=pdo_mysql.so in php.ini, it is working 😀
Forum: Plugins
In reply to: [FG Joomla to WordPress] MYSQL_ATTR_INIT_COMMANDMy bad, i mean extension=pdo_mysql.so 🙂
Forum: Plugins
In reply to: [FG Joomla to WordPress] MYSQL_ATTR_INIT_COMMANDAnd by that you are talking about extension=php_pdo_mysql.dll right? witch is enabeld. But this is not enabeld
;extension=php_pdo_firebird.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll