Support » Plugins and Hacks » MySQL issue

MySQL issue

  • Hi ,

    I am getting :

    [error] 13148#0: *59843 FastCGI sent in stderr: “PHP message: PHP Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /path/wp-content/plugins/contus-video-gallery/front/views/videoshortcode.php on line 587

    But this happens only when retriving and loading video details.

    I could able to see the videos for each category in admin page.
    I have checked the db details in wp-config, seems fine.

    Thanks for any help in advance.


Viewing 1 replies (of 1 total)
  • Hi,

    Open \wp-content\plugins\contus-video-gallery\front\views\videoshortcode.php and find the following code

    $related                     = mysql_query($select);
                if (!empty($related))
                    $result                  = mysql_num_rows($related);
                if ($result != '') {

    and replace with the below code

    global $wpdb;
    				$related = $wpdb->get_results ( $select );
    				if (! empty ( $related )) {

    Now find while ($relFet = mysql_fetch_object($related)) and replace with foreach ( $related as $relFet )

Viewing 1 replies (of 1 total)
  • The topic ‘MySQL issue’ is closed to new replies.