vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Dev Site (https://vborg.vbsupport.ru/showthread.php?t=290760)

Reece^B 11-15-2012 06:13 PM

Dev Site
 
Hi

My host made a backup of my site (db/files) so I can have a test site.
However im having problems with it redirecting to my main site.

They say the issue is:

<script type="text/javascript"><!-- function vba_attach_win(threadid) { openWindow('http://www.pitbikeclub.co.uk/misc.php?do=showattachments&t=' + threadid, 480, 300); } --></script>

...which reverts you to the main site.

You will need to amend this across the site.

Is there a easy way to amend this?

snakes1100 11-15-2012 08:13 PM

Did you change your URL settings in the admincp to match the url for the new dev site?

Reece^B 11-15-2012 08:30 PM

No because I can't access any pages without a redirect to the main site. I did however edit the sites url in the db but it's not made a difference.

snakes1100 11-15-2012 08:34 PM

You can use tools.php & reset the URL, its located in your do_not_upload folder from the vb zip.

Did you verify that you dont have any rewrite rules via a htaccess file?

Reece^B 11-15-2012 09:24 PM

Yes I have a rewrite all non www. for the main site, I checked the .htaccess for the dev site and that has the same code. I removed but for some reason chrome downloads the webpages instead of displaying?

So tried that tools, and the friggin redirect keeps taking me off it!

snakes1100 11-15-2012 09:31 PM

Typically if your prompted to dl a page, then thats an apache issue w/ the add handler.

Edit the .htaccess in the dev folder & disable rewrites

Lynne 11-15-2012 09:34 PM

Since that isn't default vbulletin code, did you try disabling the plugins via the config.php file?

Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

HTML Code:

define('DISABLE_HOOKS', true);

Reece^B 11-15-2012 09:37 PM

I haven't, as I think the problem is with apache. Even the test PHP page won't pharse.
How do I fix this? Im running Plesk, or is it a host only issue? (i've already removed the rewrites)

Many thanks for your help folks.

Lynne 11-15-2012 10:02 PM

If a non-vbulletin page is having the problem, then the problem is a server issue.

snakes1100 11-15-2012 10:51 PM

Reece, did you do what i posted in post #6?

Reece^B 11-16-2012 06:40 AM

Yes I removed the rewrites and now the .htaccess is blank. To edit apache can I do it from Plesk or is it a host only thing?

Thanks in advance.

snakes1100 11-16-2012 10:46 AM

Why are you trying to edit apache?

Do not empty it, disable rewrites, ie....

RewriteEngine Off

Reece^B 11-16-2012 05:06 PM

Yes but you said apache isnt pharsing the pages. How do I make it do so?

snakes1100 11-16-2012 05:11 PM

I said typically the add handler is missing, but your other pages are parsing correct?

Without actually viewing the setup, its hard to say exactly whats causing it, some one with access to the server needs to check the logs to track the issues.

Reece^B 11-16-2012 06:25 PM

No nothing on the dev site is being produced. Just downloading.

snakes1100 11-16-2012 06:27 PM

Is the dev site on the same server?

I had asked if the other sites/pages work ok?

Reece^B 11-16-2012 06:32 PM

Apologies, yes the dev site is just a subdomain of the main site which is working okay.

I asked this question over @ vb.com and 1 reply was it looks like vBadvanced? However nothing is parsing! There must be a easy fix?

snakes1100 11-16-2012 06:39 PM

In my previous post, someone with log access needs to find out whats going on, there are a few things it could be.

Its not really a easy fix when you cant see the server itself or its setup etc...

Reece^B 11-16-2012 06:56 PM

Thanks for all your help, looking at the subdomain settings and PHP was never ticked. Thanks to my host...

Anyway fixed now, thank you.

Max Taxable 11-16-2012 06:57 PM

There are never enough "Likes" to give Lynne.

snakes1100 11-16-2012 07:04 PM

Quote:

Originally Posted by Reece^B (Post 2381679)
Thanks for all your help, looking at the subdomain settings and PHP was never ticked. Thanks to my host...

Anyway fixed now, thank you.

As i said the add handler is typically what causes a page to dl instead of parse, if php wasnt set ot handle file for that account, then that would be the end result.


All times are GMT. The time now is 01:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete