PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   What the heck just happened? (http://www.photopost.com/forum/classifieds-how-do-i/123650-what-heck-just-happened.html)

Sal Collaziano March 9th, 2006 05:09 PM

What the heck just happened?
 
http://www.cadillacforums.com/cadillac-classifieds/

Nothing. Strange, but my Photopost installation is fine.. I can't imagine what just might have happened. Has anyone had this happen before? If so, how did you fix it?

Thanks... B=0

Chuck S March 9th, 2006 05:16 PM

I can't say anything here other than to download the distribution and upload clean files except the config files.

Did you add any htaccess files in that directory or do anything? Your php files are downloading not processing almost like php is not installed on the server but you know it is.

Sal Collaziano March 9th, 2006 06:13 PM

Why me?!?! Oh, it could be worse... :p

Thanks...

Michael P March 9th, 2006 06:34 PM

Very strange, none of the scripts seem to want to come up with anything at all.

Chuck S March 9th, 2006 06:35 PM

Well if I go to showcat and showproduct they download in the browser like PHP is not installed which is strange.

Sal,

Have you checked for an htaccess in the directory that would affect the directory and not the rest of the site?

Sal Collaziano March 10th, 2006 06:54 AM

No .htaccess file in the classifieds directory... I'm going to try re-uploading all the files now... Except config files...

Sal Collaziano March 10th, 2006 07:11 AM

Well.. I reuploaded everything and I still have the same problem.. This site is running on a managed dedicated server. What could I ask without sounding crazy?

If I upload the install and upgrade files, THEY load fine!

Sal Collaziano March 10th, 2006 07:34 AM

I wonder if this tells a story of some sort.. I just created a new directory - classifieds-cadillac - and even in THAT directory, I get the same exact thing.. Nothing - or if I go to the actual file "index.php", it wants to download the file...

Chuck S March 10th, 2006 07:47 AM

Sal does a new install work if you install a new test install?

Are all the permissions set accordingly. The classifieds directory is 755 and all the rest of the directories and files set according to this?

http://www.photopost.com/class/installphp.html

As I asked before look in the classifieds directory to see if there are any htaccess files and delete them. Something seems to be interfering with the running of PHP scripts within that directory and without knowing what changes where made from the time it worked to now its hard for us to do anything but guess here.

Sal Collaziano March 10th, 2006 07:53 AM

Yup, I answered that above but I rambled on and I should have reiterated.. No .htaccess file.. I just did a clean install in classifieds-cadillac and it works fine... I wish I knew what was going on...

I just checked permissions.. All set...

Chuck S March 10th, 2006 07:55 AM

Okay viewing the classifieds database for this install are all the tables present? I know I am grabbing at straws here.

PM me FTP and PHPMYADMIN logins as well as admin login and I will do a little testing.

Sal Collaziano March 10th, 2006 07:57 AM

Oh and in case you missed it up above, the install and upgrade files work no problem.. I don't know if that means anything specific or not...

Sal Collaziano March 10th, 2006 07:59 AM

There are 22 tables present in both installations.. I'll PM you in a min...

Thank you...

Sal Collaziano March 10th, 2006 08:42 AM

I wonder if completely removing the folder/directory and reuploading it would fix the problem... If you don't find anything wrong - than what do you think of that?

Michael P March 10th, 2006 08:51 AM

I don't think so.

This is what I would do:

In index.php, put the line:

Code:

Content visible to verified customers only.
above everything else.

Load index.php in your browser and see if you get the hello text.

If you do, move it down below the require for pp-inc.php

load again - if you don't get any text, that means we need to move to pp-inc.php and start moving that same line in there - first at the top, then down a little further after the include for config-inc.php.

Its possible that there is a blank line on the end of your config-inc.php file or something that is interfering with your scripts ability to run.

Sal Collaziano March 10th, 2006 08:54 AM

I tried putting echo "hello"; exit; as the first line in index.php and I got the same result.. So what does that tell us? :(

While I was out a couple of nights ago, my server went down.. Heavy load, I believe.. I think it's probably after that that I'm having this problem.. Could the database have been in the middle of something that's causing this because it was shut down abruptly?

Michael P March 10th, 2006 08:59 AM

Just to make sure, it should look like:

Code:

Content visible to verified customers only.
Also, try a new script:

Code:

Content visible to verified customers only.
and make this as a new file, call it phpinfo.php and load it in your browser.

Sal Collaziano March 10th, 2006 09:08 AM

Okay. "hello" worked (sorry, I didn't realize it went below the <?php). Let me move down the list a little... I'll edit this in a minute..

I moved it below the require for pp-inc and I still got the "hello" text...

I'll add that phpinfo.php file you just asked me to create now...

Michael P March 10th, 2006 09:20 AM

Well, dont worry about the phpinfo()...

Okay, making sure you remove the line each time you move it, move it futher down in the file to see where it might stop.

Sal Collaziano March 10th, 2006 09:32 AM

Okay. Here's where the "hello" echo stops working:

if ( $cat > 0 ) {
if ($CatPerms['ugview'][$cat] == 1 ) {
diewell( $Globals['pp_lang']['noview'] );
}
echo "hello"; exit;


All times are GMT -5. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97