[SOLVED] Help with "logical path"

Copied code from where? If you copied it from here in Discourse then it won’t work. We don’t allow anyone to post working code. We only allow code that isn’t working so we can help you fix it.

Please learn to post your code properly with formatting. Directions are here.