Skip to content

Something broke ... getting error 500 #3767

Answered by dgw
dzg asked this question in Q&A
May 31, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Do you have $yourls_reserved_URL defined in your config.php? The stack trace you were able to post points to that variable being NULL, as if it is never defined in your config file.

Minimal code example that throws the same error:

<?php

function some( $thing ) {
	global $yourls_reserved_URL;
	
	return in_array( $thing, $yourls_reserved_URL );
}

print(some("3"));

Interactive demo

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dzg
Comment options

@dzg
Comment options

@dzg
Comment options

@dgw
Comment options

Answer selected by dgw
@dzg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants