MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Waterfall graphs not showing plus a possible bug fix
Current time: 01-19-2021, 03:57 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waterfall graphs not showing plus a possible bug fix
09-28-2017, 12:04 PM
Post: #1
Waterfall graphs not showing plus a possible bug fix
I've spent a fair bit of time trying to get webpagetest 3.0 work on Window 10 64 bit. By modifying the code I've gotten it to run, but waterfall graphs aren't showing.

// Load the test-specific data
$id = '';
if (preg_match('/^[a-zA-Z0-9_]+$/', @$_REQUEST['test'])) {
    $id = $_REQUEST['test'];
} elseif (preg_match('/^[a-zA-Z0-9_]+$/', @$_COOKIE['tid'])) {
    $id = $_COOKIE['tid'];

There's no header 'test' so $id is set to "tid", which is set to 38aed79c93a067e379b10bf3c4f17d8a3519d296.

If I replace that code with this the test runs and returns a result

$id = substr($_SERVER['REQUEST_URI'], 8, 42);

I wonder, however, if this causes other problems.

waterfall graphs
The waterfall graphs aren't showing. I get a spinning circle, with nothing loading.

When I copy the image URL ( ) I get another copy of the results page. When I instead hit this URL directly ( thumbnail.php?test=170928_RP_0a8f397ea7be717fae0c369ebdd12cdf&run=1&file=1_waterfall.png ) I get a black featureless png generated.

This suggests that there's two problems
1) A problem with the .htaccess rules.
2) A problem generating the PNG

When I click the waterfall graph to go to the detail view I get back to the original page.

The troubleshooting guide says:
  • Waterfall charts are missing
    Check if the GD library is installed. The GD library is used for drawing the waterfalls and generating thumbnail images.
  • Look to see if php-zip, php5-zip or a similar zip library is installed. With some default PHP distributions the library is not present.

When I look at phpinfo() I can see
  • "GD Support" is "enabled"
  • "GD Version" is "bundled (2.1.0 compatible)"
  • "PNG Support" is enabled
  • "libPNG Version" is 1.5.26
  • Zip is enabled
  • Zip version 1.12.5
  • Libzip version is 0.11.2

Any help would be appreciated.

I'm running WAMP 3.0, which includes:
  • Apache apache2.4.27
  • PHP 5.6.31

I intend to write a blog post that sets out how I set up the 3.0 private instance on my technical blog in order to help others, if I can get it working.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Waterfall graphs not showing plus a possible bug fix - timwnz - 09-28-2017 12:04 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)