Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Invalid Query


  • Please log in to reply
20 replies to this topic

#1 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 07 July 2012 - 12:04 PM

Just installed TubePress and when I insert the shortcode [tubepress] or any other string and view the page it says invalid query V=2

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 07 July 2012 - 08:16 PM

Could you share a link to your site so we could take a closer look? Also, please make sure debugging is enabled from WP Admin > Settings > TubePress > Advanced.

#3 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 08 July 2012 - 07:58 AM

http://millelacs.com...la...videos.htm

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 08 July 2012 - 06:25 PM

http://millelacs.com...la...videos.htm is giving me a 404. Is that the right URL? Is it public?

#5 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 09 July 2012 - 08:11 AM

Sorry, changed the permalink, try this one http://millelacs.com...press/video.htm

#6 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 09 July 2012 - 07:05 PM

Looks like the shortcode that TubePress is trying to read is

[tubepress mode="favorites" favoritesValue="MilleLacsLakeTourism"][icon image="cancel" align="left"]
What happens if you either remove or put a space before the

[icon image="cancel" align="left"]
piece?

#7 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 09 July 2012 - 07:20 PM

Still get the same error. I get the error even if I just use [tubepress]

#8 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 12 July 2012 - 01:51 PM

I am still getting the invalid query v=2 even if I just use the shortcode [tubepress], any ideas??

#9 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 16 July 2012 - 08:15 AM

Help Please. Still getting Invalid Query v=2 even if I use just [tubepress]. Thanks!

#10 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 July 2012 - 11:27 AM

Hi,

Sorry that you're still having trouble getting this to work. I've never seen this particular error before. Could you copy/paste the output of phpinfo()? Or create a PHP page with the following

<?php phpinfo(); ?>
and send along the link to that page. I'd be curious to see which version of PHP and its library dependencies that you're using.

Also, it looks like TubePress is currently disabled on your site?

We'll figure this out!

#11 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 17 July 2012 - 12:40 PM

Sorry, I disabled TubePress. Here is a link to PHP page - http://millelacs.com/wordpress/php.htm

Hope I did it right, just created the page and put the code in under the HTML screen.

#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 July 2012 - 12:59 PM

Looks like that page is being interpreted as HTML instead of PHP. What happens if you rename the page from "php.htm" to "php.php"? That might get the webserver to process the file as PHP. Your hosting provider could provide detailed instructions on how to invoke PHP, but 99% of the time simply renaming the file extension to "php" works.

#13 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 17 July 2012 - 04:02 PM

I am using the .html on Pages for Wordpress plugin so it adds the .htm to every page so I don't believe I can disable it for just one page. Any ideas?

#14 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 17 July 2012 - 04:49 PM

I added the last 3 lines below to my .htaccess file located in the Wordpress directory but it still doesn't seem to work, any thoughts on this??

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]

# BEGIN WordPress

RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]

# END WordPress


AddType application/x-httpd-php .htm


#15 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 17 July 2012 - 07:58 PM

The lines that I added to the .htaccess file weren't working so I deleted them and now I have an even bigger problem.

some of my pages in the millelacs.com/wordpress directory are trying to redirect to www.millelacs.com site and those pages don't exist. The permalinks are correct and when I hover over the link it appears correct but when it follows it's wrong.

Example:
http://www.millelacs...activities/boat
This does not exist.
http://www.millelacs.com/lodging/ which does not exist.

Weird because some of the pages work and these couple do not.

I deactivated all plugins to see if there was a problem but there does not appear to be. Any ideas what might have happened?

#16 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 18 July 2012 - 03:32 PM

Okay, I restored the database and have everything working again. Is there another way for you to see the PHP cuz creating the page and putting the code in isn't working. Thanks!

#17 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 19 July 2012 - 10:27 AM

Okay, I restored the database and have everything working again. Is there another way for you to see the PHP cuz creating the page and putting the code in isn't working. Thanks!


The easiest method might be to just open a support ticket with your hosthing provider, asking them how you can get the output of phpinfo().

You could also try creating a file, called test.php, right next to wp-config.php. The only contents of this file should be

<?php phpinfo(); ?>
Then you should be able to view the file at http://millelacs.com...dpress/test.php.

#18 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 21 July 2012 - 11:12 AM

Okay, I have it working now, please take a look at the test.php file. Thanks you!

#19 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 23 July 2012 - 02:34 PM

Thanks!

The problem is that your PHP installation is using a very old (well, 6 years anyway) version of PCRE - a library that PHP/TubePress uses for regular expressions. The particular version you're using (7.0) contains a bug that breaks an important component of TubePress's URL handling.

The only solution, at the moment, is to ask your hosting provider to upgrade your PHP installation to use a modern version of PCRE. I'm sorry that I can't be of more help at the moment!

#20 Tina Chapman

Tina Chapman

    Member

  • Members
  • PipPip
  • 14 posts

Posted 24 July 2012 - 06:32 PM

Thanks, I will give them a call tomorrow and see what they will do.