WordPress.org

Forums

WORDPRESS VIDEO GALLERY
MySQL issue (2 posts)

  1. rcramu
    Member
    Posted 1 year ago #

    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.

    https://wordpress.org/plugins/contus-video-gallery/

  2. karthikeyani
    Member
    Posted 1 year ago #

    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 )

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WORDPRESS VIDEO GALLERY
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.