Object not found errors..

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

Object not found errors..

Postby gralien » 03. May 2011 22:20

I've been trying to figure this out for hours now and it's driving me crazy. The main page of my site works fine but any dynamic pages are not working and I get "object not found" errors. After some Googling I have made sure that httpd.conf has "AllowOverride All" and "LoadModule rewrite_module modules/mod_rewrite.so" enabled but still no joy. :(

Any other ideas?
gralien
 
Posts: 3
Joined: 03. May 2011 22:14

Re: Object not found errors..

Postby Altrea » 03. May 2011 22:23

XAMPP Apache error.log file content?
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Object not found errors..

Postby gralien » 03. May 2011 22:34

HI there, here's the main errors I'm getting.
[Tue May 03 22:31:14 2011] [error] [client 127.0.0.1] PHP Strict Standards: Resource ID#28 used as offset, casting to integer (28) in C:\\xampp\\htdocs\\tradertestsite\\libs\\classes\\class.db.php on line 84
[Tue May 03 22:31:14 2011] [error] [client 127.0.0.1] PHP Strict Standards: Resource ID#28 used as offset, casting to integer (28) in C:\\xampp\\htdocs\\tradertestsite\\libs\\classes\\class.db.php on line 85
[Tue May 03 22:31:14 2011] [error] [client 127.0.0.1] PHP Notice: Undefined variable: qfsearch in C:\\xampp\\htdocs\\tradertestsite\\libs\\components\\com.quickfind.php on line 60
gralien
 
Posts: 3
Joined: 03. May 2011 22:14

Re: Object not found errors..

Postby Altrea » 03. May 2011 22:48

You are the only one who can debug the sourcecode.
I can just explain whats going up.

In your file C:\xampp\htdocs\tradertestsite\libs\classes\class.db.php on lines 84 and 85 is used a Ressource (Object) as Variable Index.
Thats allowed, but PHP cast this value to an Integer (ID#28 will be transformed to the integer 28, and so on). This is not in every case what you or your script will expect.
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Object not found errors..

Postby gralien » 03. May 2011 22:58

Thanks for that I'll try work it out. Strange that it works online but the fresh backup I have running in Xamp spits out these errors :?
gralien
 
Posts: 3
Joined: 03. May 2011 22:14

Re: Object not found errors..

Postby Sharley » 05. May 2011 07:10

gralien wrote:Strange that it works online but the fresh backup I have running in Xamp spits out these errors
The paths that work on your hosted server are usually Linux based which may not be the same as for a Windows based path, so paths should be checked first in your script's configuration - this is a very common situation with an online hosted server and an XAMPP for Windows based server - do some research on relative and absolute paths.

Clue.
If you have a leading slash in your paths then on your hosted server they will point to the web root directory of the server where as in XAMPP they will point to the DocumentRoot which is the C:\xampp\htdocs folder in a default installation.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 75 guests