I have built a site locally and everything looks and functions great. When migrating to an existing how to show to client, things still work fine. The issue comes into play when migrating to client site.
While the issue makes sense, it does not make sense in this situation. I can guarantee there is a child called $item and I can guarantee that it has url. The versions on both servers are exactly the same. ( I am not a server guy ) From what I can tell the systems are identical. Both running Linux, cPanel, Apache, and everything is to spec, from the information we could find.
So my questions are.
What are the requirement for a server on Linux? I can only seem to find Windows and Mac install.
Any idea why the panel would read the system just fine but the front end throw the errors?
Has anyone else run into this issue of admin working but front end not or visa versa?
This doesn’t seem to be the problem. Well entirely at least. I converted all the syntax to be <?php and <?php echo just to be safe. Now I get a totally new error.
syntax error, unexpected 'endif' (T_ENDIF)
</ul> <?php endif; ?>
Which I can assure that it is needed, as it works on my local and dev server.
Below is the code that is producing the error. But again, not sure if this is really a cause or symptom of something else.
Is there documentation on what the server setup needs to be? Like what apache modules need to be active or inactive.
I wonder if there is something else that could be causing the overall issue.
(btw… I appreciate your help, this issue is driving me crazy. It works locally and I don’t have access to the server logs to see if there are any other issues that could be lingering )
There’s still a short open tag in line 11, right after the opening header element. Unless you enable short open tags in your php.ini, this will likely be the cause of the error message. It is not advisable to use short open tags apart from the short echo tag, though.
Well that was the issue. <? is not configured on the new server thus breaking everything.
After taking a more thorough look through all my code, I have successfully take all from <? to <?php
Does anyone know what the server setting is for that? Because I have 2 instances where the short had works. And honestly, this has not been an issue up until this install. ( Which is why I didn’t think of that. )