Fatal Error-SOLVED-Disabled index.php in root

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Fatal Error-SOLVED-Disabled index.php in root

Postby drcarl » 19. May 2011 07:14


PLEASE NOTE: When I first posted, I mistakenly referred to the Admin panel as the Control panel. My Control panel is OK. The problem is in reaching my Admin panel via localhost. I edited everywhere I could (all except replies) and changed Control to Admin. Sorry for any confusion when you see Control panel that should say Admin.




When I agreed to let Dreamweaver discover dynamically-related files, it returned this error message:

"Dynamically-related files could not be resolved because the site definition is not correct for this server"


Entering http://localhost returns this:

"Warning: require_once(D:\xampp\htdocs/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\wp-blog-header.php on line 12"

and

"Fatal error: require_once() [function.require]: Failed opening required 'D:\xampp\htdocs/wp-load.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\wp-blog-header.php on line 12"



I cannot access the XAMPP Admin* Panel. I can access PHPMyAdmin.

I can open Wordpress and work on the site I am trying to develop, so SOMEthing about Apache and MySQL are working. Maybe some settings I changed in Dreamweaver caused the problem?....I did attempt to muddle-through re-creating a testing server on my local machine due to the initial error messages (at the top of this post).

I am attempting to coordinate XAMPP, PHP, Wordpress, and Dreamweaver on my Win7 x64 machine. I had a localhost working great for a while. Did have a power-outage today while everything was open and think that maybe a file got corrupted? Or maybe I changed a wrong setting.

I hope this kind of thing has been seen before and that some kind person can set me straight, please.

Re-install XAMPP? (If so, what's the protocol? uninstall first?) just guessing now

Thank you in advance

drcarl

*edit: Changed "Control panel" to "Admin panel"
Last edited by drcarl on 22. May 2011 23:06, edited 6 times in total.
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Control Panel

Postby anton_k » 19. May 2011 09:31

How r u drcarl ?

Let us do some "surgical operations" due to the problems u're having now:

1. First, what should we do ? There's so much medicine out there to cure human's diseases. But for this case, I BETTER SUGGEST you to calm down and not get so depressed as I would perhaps be "addicted" later :)

2. Second, The XAMPP Control Panel is only a thing(=it's an inanimate object, you know. It can't harm you or even bite you). So, THERE IS NOTHING WRONG WITH THE XAMPP CONTROL PANEL, WITH YOUR DREAMWEAVER OR EVEN YOUR WORDPRESS. As what you said:
Did have a power-outage today while everything was open and think that maybe a file got corrupted? Or maybe I changed a wrong setting.


3. So be cool ok :idea:..exactly like this: now i won't blame anythings else since "all the development tools" has been working great before for me.

4. Let's solve the problems together:
First, u didn't give a complete posted code. But always be calm down, we can search for the problems that has occurred ok.

5. You gave your posted code as below:

(just it ?)...Ok, all I know to run yourWordpress Application, u must give the full path name such as http://localhost/[yourWordpressAppFolder]. And of course, the first one file refers to "index.php" as your Wordpress application begins its first "welcome screen" or as an intro. So it is a kind like this:
http://localhost/[yourWordpressAppFolder]/index.php

6. Then you got this error:
"Warning: require_once(D:\xampp\htdocs/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\wp-blog-header.php on line 12"

and

"Fatal error: require_once() [function.require]: Failed opening required 'D:\xampp\htdocs/wp-load.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\wp-blog-header.php on line 12"


Alright, did you see the error, didn't you ? Let's say hello to them:
In the error, you see the language construct require_once(D:\xampp\htdocs/wp-load.php). Ok, in PHP programming, IT IS NOT ALLOWED TO SPECIFY SUCH PATH. Besides you must make sure that your all php codes reside in ONLY ONE FOLDER (=in this case is yourWordpress'Foldername). And PHP doesn't recognize such path (:\..\../../..) (=it's forbidden). Ok For instance, I want to make my site in the index.php looks like this:
Code: Select all
<?php
include('../include/menu_top.php'); //as you know,the menu_top.php file is in the include folder. ..// means outside my index.php folder
include('../include/theContent.php');
include('../include/menu_bottom.php');
?>

See ? That is why you got the error like your posted code if u don't specify the right path ok.

Or you can try as follows:
require_once $_SERVER['DOCUMENT_ROOT']."/ClassFolder/myphpclass.php";

7. Locate and find your index.php or the file that has require_once(D:\xampp\htdocs/wp-load.php). Try to change it into the right path. As the error arised, try to organize your files(=in this case: wp-load.php, wp-blog-header.php ) into your Wordpress' Folder Name. Find out, Do the files(wp-load.php, wp-blog-header.php ) or even other files supported really exist ? If so, organize them well.

8. Ok last words: Try to be nice and even be cool to see and finally get solved all the problems that arised for yourself. The Development Tools can't talk to us, but we can talk to them. What else ? Try to get involved in better clean programming such what..try to organize well your various apps. on the server ok. So PHP can read easily and even understand which path it should go or find the necessary files to run the program.


You must can do it..See u again.

soft regards,,anton_k
anton_k
 
Posts: 4
Joined: 03. May 2011 03:39

Re: Fatal Error - Can't access Admin Panel

Postby drcarl » 20. May 2011 01:20

anton,

LOL - you're funny. I am not at all depressed, not fearing bites (or bytes), am extremely cool, and look forward to solving the problem. Thanks for your reflections. I just hope I can understand them. I'll be working on that now.

Meanwhile, here's an update:

I had made a change, and after reading a great deal, I changed the 'permalinks' setting in Wordpress (WP) back to the default "ugly" (from 'month and name') and now Dreamweaver (DW) seems quite happy and is working fine (so far, I think). So, 'ugly': DW happy....'month and name': DW sick.

Eventually, I want to understand the permalink options since I believe one is better for the search engines. Everyone wants to make search engines happy.

Since DW is now happy, I tried entering http://localhost to see if the XAMPP Admin Panel would open. Nope. Same error message that I will try to understand how to address. Please realize that however obvious things might be to you, this is a whole new language for me.

Here are some more complete paths in case that helps:

When I have my site open on my local server, the URL shows: "http://localhost/doctoreq/wordpress/"

When I have WP Dashboard open, the URL shows: http://localhost/doctoreq/wordpress/wp-admin/index.php

Oh! Earlier today I was looking at a path and I saw something crazy; an additional doctoreq folder and an additional index.php!

I expect to see this: (I am using a theme titled "Polished")
D:\xampp\htdocs\doctoreq\wordpress\wp-content\themes\Polished\index.php

I discovered an "extra" folder (and deleted the bold red part):
D:\xampp\htdocs\doctoreq\doctoreq\wordpress\index.php

I just discovered two more "extra" folders and will delete them too!
D:\xampp\htdocs\doctoreq\wordpress\wordpress\index.php
D:\xampp\htdocs\doctoreq\wordpress\wordpress\wp-blog-header.php

These probably resulted from when I tried to find a remedy by reinstalling WP. Oops. Clean now. Testing. Results:

Entering into URL: http://local host show same fatal error noted.
Changing WP permalinks to ANYthing other than default makes DW get sick.
Changed WP permalink to default now DW is happy.

So, that's the update.

By the way, the "EQ" in doctorEQ is for earthquake. I learned how to predict earthquakes decades ago and now am about to teach everyone the ideas behind it...(it's all about paying attention to animals because they know what's coming, really!)

Thanks for your help...I am now going to try to see if there is a chance I can follow your instruction.

--drcarl
Last edited by drcarl on 20. May 2011 17:26, edited 2 times in total.
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel

Postby drcarl » 20. May 2011 04:01

UPDATE:

Actually, I did not enter the code myself. I wish I understood the PHP language and will learn it slowly. For now I am using a theme from ElegantThemes that is joined with Wordpress. Sometimes I want to find and change design elements in Dreamweaver, once I learn how to better do this. I can only learn so fast.

Meanwhile I MUST get my site up soon because I know information that MANY people need, like how to deal with the radioactive isotopes...anyway, here's my report:

I do not "see the error" because I am just learning the language, and it's all in code - lol.

I do see the "\" mixed with "/" in the error reported by the browser. I didn't do it. The browser reported it. In fact, I wonder why sometimes a path includes http://localhost/doctoreq/wordpress/ and sometimes displays as D:\xampp\htdocs\doctoreq\wordpress (<--like in DW). Where do "\"s come from?

RE: " require_once(D:\xampp\htdocs/wp-load.php). Ok, in PHP programming, IT IS NOT ALLOWED TO SPECIFY SUCH PATH."
OK, I didn't do it. Such a path as what? the mixed "/" and "\", or something else? Whoever did it, what is the fix?

RE: " all php codes reside in ONLY ONE FOLDER (=in this case is yourWordpress'Foldername)"
Only one folder??? I have .php files in the following folders:
D:\xampp\htdocs

index.php file is here and it contains the following code (remember, I am using a theme from ElegantThemes):
-------------------------------------
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
---------------------------------------------

.php files also in all these folders........
D:\xampp\htdocs\doctoreq\wordpress
D:\xampp\htdocs\doctoreq\wordpress\wp-admin
D:\xampp\htdocs\doctoreq\wordpress\wp-content
D:\xampp\htdocs\doctoreq\wordpress\wp-includes

You can't really mean one folder.

ALSO of note: In Dreamweaver, I looked for the index.php and as noted, found the file outlined above. With my site fully open in DW, I see another "index" file with this name: index_98b0wh2yp.php.
Is that important to you? When I click on it (in DW) to see if the code might lend a clue, a message says: " ' index_98b0wh2yp.php' is not on the local disc. Get ?"
I searched my computer and have no such file and have NO idea what it is or why it's sort of present in DW.

RE: I want to make my site in the index.php looks like this: (then you have your index.php code)
I don't understand that code yet, inside, outside, etc...and suspect that mine (as posted above) is different because of the theme.

RE: "Or you can try as follows: require_once $_SERVER['DOCUMENT_ROOT']."/ClassFolder/myphpclass.php";"
You are giving me too much credit. Remember I am a baby with all this. I have no idea where to "try" it. I need precise instructions.

RE: #7 I found the file with "require_once" and it's in the "wp-blog-header.php found here (written two ways)

http://localhost/doctoreq/wordpress/ ~or~
D:\xampp\htdocs\doctoreq\wordpress\wp-blog-header.php shows the following

This is the code it contains:
------------------------------------------------------------------------------------------
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/

if ( !isset($wp_did_header) ) {

$wp_did_header = true;

require_once( dirname(__FILE__) . '/wp-load.php' );

wp();

require_once( ABSPATH . WPINC . '/template-loader.php' );

}

?>
----------------------------------------------------------------------------------
Is something different supposed to replace "__FILE__" ? (which happens to be on line 12). If so, exactly what?


RE: wp-load.php - yes it does exist and it is found here: D:\xampp\htdocs\doctoreq\wordpress
Is that the right folder? I suspect so because WP can open it...and DW works with it (as long as permalinks isn't changed)

Thanks for your help and for your kind words (where are you located? just curious)

What's next?

Thanks,

doctorEQ
Last edited by drcarl on 20. May 2011 17:25, edited 1 time in total.
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Control Panel

Postby Altrea » 20. May 2011 04:55

If you want to learn the language, you shouldn't use a Editor like Dreamweaver, because Dreamweavers configuration is nothing self explaining for beginners and that can drive you mad and produce trouble you maybe don't have with a simple texteditor like Notepad++. Try a board search for "Dreamweaver" and you will get several threads with Dreamweaver configuration issues.

btw: XAMPP Control Panel is nothing you can request with an URL. Thats the little program where you can start/stop the single components of XAMPP. Maybe it's the XAMPP Administration panel you mean!?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Fatal Error - Can't access Admin Panel

Postby drcarl » 20. May 2011 17:10

Altrea,

In a perfect world, one wouldn't visit another country without first learning the language. I have been offered an almost free trip so I'm jumping-in now and will just have to struggle along however stupid I might appear. Dreamweaver might be a crutch for those interested only in coding in its purest sense. I need to get a site up, THEN learn about the code, however awkward that might be. Dreamweaver can be used to code and to locate files that need coding and to see the results. There are many different paths to the destination. I have enrolled in some online classes (.lynda.com) that have been very helpful.

I have notepad and wordpad and many others. I will remember to search this board specifically for Dreamweaver config issues.

You are right! it IS the Admin panel, not the Control Panel...[I made the relevant edits, thank you] --it's whatever first page one is usually supposed to see...all orange and white....menu items on the left...you know the one.

I also discovered that http://127.0.0.1/xampp/ gets me in....so I guess it's the original error message that I need to address

Can anyone help me get that back and resolve the error issue?

Best,

doctorEQ

{there are only 10 kinds of people in the world, those who get me and those who don't}
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel (edit: Control=Ad

Postby Marcio » 20. May 2011 21:08

try call setup_xampp.bat - use drive letters
try this control panel: viewtopic.php?f=16&t=46743
or this: http://www.ot55.net/blog/2011/05/16/ot5 ... s-manager/
MPG & OT:55! - One Target: Simple Solutions!
Marcio
 
Posts: 2
Joined: 20. May 2011 20:49
Location: Brazil

Re: Fatal Error - Can't access Admin Panel (edit: Control=Ad

Postby drcarl » 20. May 2011 22:30

wole wrote:Mir fällt da ein deutsches Sprichwort ein.
Darin kommt sowas vor wie: ... Perlen vor die Säue werfen ...

Warum fällt mir das nun gerade hier ein ????


Wole,

Müssen Sie in einer schlechten Stimmung heute. Soll ich kriechen zu Ihren Füßen? lol

Ihre Inhalte nicht Deutsch ist, ist es aus diesem Buch der Märchen für Menschen, die behaupten Freunde brauchen, die Bibel "Gebt nicht das Heilige den Hunden zu, weder werft eure Perlen vor die Säue, damit sie nicht zertreten mit ihren Füßen Und wieder einschalten und euch zerreißen. "- KJV, Matthew 7:6.

Wollen Sie sagen, es ist dein Weg oder keine Möglichkeit?

Die größte Behinderung im Leben ist eine schlechte Haltung. Die zweitgrößte nimmt jemand anderes schlechte Haltung persönlich. Warum denke ich an diese hier?

Ich hoffe, Sie finden Leichtigkeit und Liebe bald.

Alle meine beste ...
Last edited by drcarl on 22. May 2011 20:49, edited 1 time in total.
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel (edit: Control=Ad

Postby drcarl » 20. May 2011 22:48

Marcio,

Thank you for your suggestions.

Altrea was kind enough to point-out it's actually the XAMPP Admin page that I am unable to reach. The control panel is working just fine.

I found and ran setup_xampp.bat. I am not sure what you meant by "call." Anyway, it reported to me "nothing to do" and appears to be working.

Since I am just learning this, I don't think I need more advanced Control panels, though I will save the links for later.

My remaining problem is getting the error code (I will paste below) when I enter "http://localhost" into my browser. I did what was suggestion to me above (please see post of 19 May 2011 20:01), yet that caused me to have an additional question (before I do anything to a file), namely, "is something different supposed to replace "__FILE__" ? (which happens to be on line 12). If so, exactly what?"

Thank you for your reflections. Here are the errors:

Warning: require_once(D:\xampp\htdocs/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\wp-blog-header.php on line 12

Fatal error: require_once() [function.require]: Failed opening required 'D:\xampp\htdocs/wp-load.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\wp-blog-header.php on line 12
Last edited by drcarl on 22. May 2011 20:50, edited 1 time in total.
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error-Admin Panel Errors (edit: Control=Admin)

Postby drcarl » 22. May 2011 07:25

Anyone?
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel

Postby Altrea » 22. May 2011 10:58

drcarl wrote:I need to get a site up, THEN learn about the code, however awkward that might be.

It isn't awkward, it is not possible at all. WYSIWYG Editors like the one in Dreamweaver don't produce clean and structured code. So you won't learn anything from that. But thats up to you.

drcarl wrote:http://127.0.0.1/xampp/ gets me in

So your Apache Server is up and running. Your problem must be a Wordpress configuration, .htaccess or Dreamweaver issue.

anton_k wrote:In the error, you see the language construct require_once(D:\xampp\htdocs/wp-load.php). Ok, in PHP programming, IT IS NOT ALLOWED TO SPECIFY SUCH PATH.

@anton_k: Thats not correct. Apache can handle mixed directory separators very well! The php parser can handle mixed directory separators very well!
In a require statement you can use relative and absolute paths. You can use file related and URL related paths.
Try it out yourself! a require() statement with dirname(__FILE__) in it can be successfully included.

drcarl wrote:
wole wrote:
Altrea wrote:...
Mir fällt da ein deutsches Sprichwort ein.
Darin kommt sowas vor wie: ... Perlen vor die Säue werfen ...

Warum fällt mir das nun gerade hier ein ????


Altra,

Müssen Sie in einer schlechten Stimmung heute. Soll ich kriechen zu Ihren Füßen? lol

1st: Who is Altra?
2nd: It was wole who posted that quote. You should ask him about his "Stimmung".

drcarl wrote:Altra was kind enough to point-out it's actually the XAMPP Admin page that I am unable to reach.

Again, who is Altra? Please try to spell my nickname correct.

Let me sum up:
Your XAMPP Apache is up and running.
You can access the XAMPP Administration panel.

I would say your problem is a wordpress configuration issue. The basepath isn't set right.
Or a .htaccess issue. Something reroute your request to your Apache DocumentRoot instead to the wordpress folder.

But you have said, that you can use the wordpress
drcarl wrote:I can open Wordpress and work on the site I am trying to develop


So, does your issue only takes effect in combination with Dreamweaver? Than again it is a dreamweaver configuration issue and you should ask in a Dreamweaver support board.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Fatal Error - Can't access Admin Panel

Postby drcarl » 22. May 2011 22:07

Dearest Altrea (not Altra),

Sorry for the spelling error, and for thinking YOU were the one with the 'pearls before swine' rudeness.

And, thank you for taking the time to reflect on all this.

Altrea wrote:(RE: getting a site up, THEN learning code, however awkward) It isn't awkward, it is not possible at all. WYSIWYG Editors like the one in Dreamweaver don't produce clean and structured code. So you won't learn anything from that. But thats up to you.


Actually, with CMSs like Wordpress, and with a purchased professionally-written (hopefully well-structured and clean) theme, some (like me) are able to get sites up without even knowing how to spell 'code.' I don't 'speak' PHP or CSS, and I have only a rudimentary understanding of html. After I get my site up, I will spend some time taking courses to improve those skills. The internet is a wonderful thing and often makes me appear much smarter than I actually am.

With the new site-specific and CMS capabilities (I think that's what they advertise), non-coders can do a great deal of site building without ever touching any code...though, agreed, they would not learn much about the art of clean code. I believe Dreamweaver to be a much more useful tool WITH that understanding. For me it's like a pretty car that I can't yet really drive. I can roll the windows up and down and play the radio (and did manage to establish a testing server and point DW at it, er, I go forward and reverse in the driveway)...DW is in my future

Altrea wrote:
drcarl wrote:http://127.0.0.1/xampp/ gets me in

So your Apache Server is up and running. Your problem must be a Wordpress configuration, .htaccess or Dreamweaver issue.


Yes, Apache runs as does PHPMyAdmin and MySql. I get the error without even starting Dreamweaver, so perhaps we are getting closer: Wordpress or .htaccess (I don't know how to diagnose .htaccess issues - didn't even know what it was until I just looked it up. *sigh* another tutorial [I wish I could take later, not now] )...come to think of it, with DW AND Wordpress closed, I still get the error...so, more like .htaccess?

Oh! Yesterday, I changed my PHPMyAdmin password to "NO" and with that one click, instantly could not get back in. I thought I might have lost everything. After a LONG time I stumbled across something about MySql's new and better 'cookie' security. It occurred to me to clear my cache and cookies and to restart Apache and MySql. Re-gaining access was a great relief. See? I really am a noob just figuring things out as best I can. Anyway, in I noticed something in PHPMyAdmin. Under the Privileges tab, "Password" for "localhost" is "Yes" and "Password" for "127.0.0.1" is "NO" and wonder if that has any bearing on my error. I am almost afraid of touching anything there (without guidance) after my scare yesterday. I suspect this has no bearing, and simply shows that I have not set a password for 127.0.0.1 (and it probably doesn't really matter because I am the only person who is allowed to touch my computer). I mention it in case it is relevant.



Altrea wrote: It was wole who posted that quote. You should ask him about his "Stimmung".


I hope wole is in a better mood (thank you Google Translate)

Altrea wrote:Let me sum up:
Your XAMPP Apache is up and running.
You can access the XAMPP Administration panel.

I would say your problem is a wordpress configuration issue. The basepath isn't set right.
Or a .htaccess issue. Something reroute your access to your Apache DocumentRoute instead to the wordpress folder.

But you have said, that you can use the wordpress
drcarl wrote:I can open Wordpress and work on the site I am trying to develop


So, does your issue only takes effect in combination with Dreamweaver? Than again it is a dreamweaver configuration issue and you should ask in a Dreamweaver support board.


No, it's not in combination with dreamweaver - I get the error even when DW is closed.

Yes, XAMPP Apache is up and running.
Yes, I can access the XAMPP Administration panel
I can access MyAdmin PHP
I can work within Wordpress, make changes, see them rendered, & save them.
http://localhost/doctoreq/wordpress/wp-admin gets me to Wordpress

With Dreamweaver and Wordpress closed...
http://localhost/xampp takes me to XAMPP Admin (I see the favicon I made on the tab Chrome)
http://127.0.0.1/xampp takes me to XAMPP Admin
http://localhost/ returns the error

I wish I understood how to set a basepath and how to determine .htaccess issues

Thank you for any help.

drcarl
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel

Postby Altrea » 22. May 2011 22:38

drcarl wrote:I believe Dreamweaver to be a much more useful tool WITH that understanding.

Well... choosing an editor is much more like choosing a religion. Later on when you have some skills in programming You should choose an editor you can be as efficient as possible with it.
Personally i don't like DW. I think there are much better editors and IDEs available for Webdevelopement. But none of them has a WYSIWYG editor :D
What i want to say is: ask 10 programmers for the right editor and you will get 12 different answers.

drcarl wrote:with DW AND Wordpress closed, I still get the error

How do you close Wordpress?

drcarl wrote:Yes, XAMPP Apache is up and running.
Yes, I can access the XAMPP Administration panel
I can access MyAdmin PHP

Thats good.

drcarl wrote:I can work within Wordpress, make changes, see them rendered, & save them.

We have to differentiate between Wordpress Backend (Administration) and Wordpress Frontend (what the user sees).

drcarl wrote:http://localhost/doctoreq/wordpress/wp-admin gets me to Wordpress

So, you are able to use the Wordpress Backend.

drcarl wrote:http://localhost/xampp takes me to XAMPP Admin (I see the favicon I made on the tab Chrome)
http://127.0.0.1/xampp takes me to XAMPP Admin

Good.

drcarl wrote:http://localhost/

But you have installed Wordpress to http://localhost/doctoreq/wordpress/.
What is happening if you request http://localhost/doctoreq/wordpress/ ?
Do you have a .htaccess file in your \xampp\htdocs\ directory?
Is there a index.php file in there?

And what is in their sourcecode?

drcarl wrote:I wish I understood how to set a basepath and how to determine .htaccess issues

The basepath is the base URL with which your Wordpress can be accessed. Most scripts have a central configuration for that.
Take a look into your Wordpress backend for the configuration of the URL.

drcarl wrote:Thank you for any help.

You are welcome 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Fatal Error-Admin Panel Errors (edit: Control=Admin)

Postby drcarl » 22. May 2011 23:05

.
.
................................................ :D SOLVED! :D

Thanks to the conversation about paths, and mentioning it may be a Wordpress issue, I did a better job of searching the Wordpress Forum. After reading some other's solutions (disabling an index.html file), I became curious about where in the heck the WP files are supposed to be. Recently I noticed what appeared to be almost a duplicate WP installation. I deleted the dupes and everything appeared OK. I had 'installed' a couple of times some time ago.

So, I examined the folder and files structure of the WP installation again hoping I might notice something. I did.

After finding a couple of index.php files, I renamed the one in the root (D:/xampp/htdocs) to indexBAK.php to disable it.

Then I cleared the cache and cookies in case that matters, and typed http://localhost into the browser and guess what?

"It Works!" was displayed instead of the error.

Thank you so much.

PS - Altrea - just noticed you post...will comment in a moment - Thanks!
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47

Re: Fatal Error - Can't access Admin Panel

Postby drcarl » 22. May 2011 23:54

Altrea wrote:... choosing an editor is much more like choosing a religion....10 programmers for the right editor and you will get 12 different answers.


LOL - Speaking of religion, when the Rapture struck me at 18:00 yesterday, Jesus came and swept me up to Heaven, and y'know what? It looks EXACTLY like where I was on Earth! Same house, same keyboard, same solid state drive...I must have been in Heaven all along!

Altrea wrote:
drcarl wrote:with DW AND Wordpress closed, I still get the error

How do you close Wordpress?


Interesting question. I had been closing the browser, not actually logging off.

Altrea wrote:
drcarl wrote:I can work within Wordpress...see them...

We have to differentiate between Wordpress Backend (Administration) and Wordpress Frontend (what the user sees).


Yes, I could (and can) get to the Backend (Dashboard/Admin). I thought that when I view the site in the browser by clicking on the doctorEQ logo on the Dashboard page and see everything rendered like the viewer will see, well, isn't that the Frontend? Or must I log-out to see the real Frontend?

Altrea wrote:
drcarl wrote:http://localhost/

But you have installed Wordpress to http://localhost/doctoreq/wordpress/.
What is happening if you request http://localhost/doctoreq/wordpress/ ?


I see the Frontend

Altrea wrote:Do you have a .htaccess file in your \xampp\htdocs\ directory?

Nope - I do see .htaccess files in these locations:
wordpress (D:\xampp\htdocs\doctoreq) (which is really D:/xampp/htdocs/doctoreq/wordpress if I use Explorer to find 'em)
libraries (D:\xampp\phpMyAdmin)
lib (D:\xampp\phpMyAdmin\setup)
forbidden (D:\xampp\htdocs)
sqlite (D:\xampp\htdocs\xampp)

and a htaccess.php file at
models (D:\xampp\htdocs\doctoreq\wordpress\wp-content\plugins\redirection\models)

Altrea wrote:Is there a index.php file in there?

This would be the big giant "Bingo!" as in Yes!
This is the one I neutered and rendered otherwise incapable of execution.

Altrea wrote:And what is in their sourcecode?

Not sure. This is the entire code inside the one in Wordpress
---------------------------------
# BEGIN WordPress

# END WordPress
--------------------------------


Altrea wrote:
drcarl wrote:I wish I understood how to set a basepath and how to determine .htaccess issues

The basepath is the base URL with which your Wordpress can be accessed. Most scripts have a central configuration for that.
Take a look into your Wordpress backend for the configuration of the URL.


This must be the basepath: http://localhost/doctoreq/wordpress

Altrea wrote:
drcarl wrote:Thank you for any help.

You are welcome 8)

Really, double and triple thanks.

It looks like you were just about to tell me the magic answer as I landed on it by luck (and maybe a teeny bit of logic)

I hope my multiple installs don't rear-up their ugly heads and bite me for some reason in the future.

I also hope you stop-by and visit my "dot-com" once it's up. I bet you can guess the URL by now - lol

Many thanks

doctorEQ
drcarl
 
Posts: 12
Joined: 25. April 2011 00:47


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests