Web page only outputs these two characters: ?>
Posted by: willlee (---.res.spectrum.com)
Date: November 23, 2024 02:10PM

I run wamp web server on Windows 10 pro, using wordpress. There are two websites under www directory: a.com and b.com. Both URLs run normally until I found that a.com runs normally, but b.com only outputs ?>

Every expert's opinion will be appreciated!



Edited 1 time(s). Last edit at 11/23/2024 02:12PM by willlee.

Options: ReplyQuote
Re: Web page only outputs these two characters: ?>
Posted by: Otomatic (Moderator)
Date: November 23, 2024 03:07PM

> but b.com only outputs ?>

?> is the PHP code closing tag. There's probably an error in a file.
See log files apache_error.log, mysql.log and php_error.log

There is a .php file with two consecutive code closing tags.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 11/23/2024 06:11PM by Otomatic.

Options: ReplyQuote
Re: Web page only outputs these two characters: ?>
Posted by: willlee (---.res.spectrum.com)
Date: November 26, 2024 07:57AM

hi Otomatic,

Really appreciate your prompt response to my post! Eventually I found my wp-config.php file was tampered with or infected with malicious code. The code is clearly not in the standard WordPress configuration file format, especially the use of the base64_decode function, which is often used to hide malicious code. I have fixed the problem and the two URLs are OK now, then I employed 360 safety guard software on my computer.

But one day after the fix, both websites become very slow than before. I am trying to fix the speed issue now.

Thanks a lot!
Will

Options: ReplyQuote
Re: Web page only outputs these two characters: ?>
Posted by: willlee (---.res.spectrum.com)
Date: November 26, 2024 11:14AM

Actually found the two URLs are pretty fast as before on the machine which runs the wamp webserver, but very very slow from outside network browser. What would be the reason?

Thanks!

Options: ReplyQuote
Re: Web page only outputs these two characters: ?>
Posted by: Otomatic (Moderator)
Date: November 26, 2024 03:16PM

> What would be the reason?

The reason can be deduced from the problem statement! It's a network problem!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Web page only outputs these two characters: ?>
Posted by: willlee (---.res.spectrum.com)
Date: November 27, 2024 08:49AM

Somehow, working now! Don't know the reason.

Thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.