Anton Martin Posted November 6, 2022 Share Posted November 6, 2022 I've recently resurrected an old site for a client and updated Processwire to version 3.0.200 which seems to have been successful with the exception of the text "WireDataDB" displaying at the very top of the site. Debug is currently on but the text remains even if I turn it off. Can anyone help me out? Link to comment Share on other sites More sharing options...
szabesz Posted November 6, 2022 Share Posted November 6, 2022 Hi, 11 hours ago, Anton Martin said: text "WireDataDB" Can you be a bit more specific? What is the exact wording of the message and what is its actual source? Do you have a backtrace or something else? 1 Link to comment Share on other sites More sharing options...
Anton Martin Posted November 6, 2022 Author Share Posted November 6, 2022 Thanks for the re 5 hours ago, szabesz said: Hi, Can you be a bit more specific? What is the exact wording of the message and what is its actual source? Do you have a backtrace or something else? It literally just says WireDataDB just after the <body> tag. You can view the site here - https://melbournechristmastrees.com/hiatus-home/ Sorry I'm not familiar with what backtrace means. Link to comment Share on other sites More sharing options...
3fingers Posted November 7, 2022 Share Posted November 7, 2022 Actually that text is located inside the <head> of your page, but the browser moves it in the first line of the body since it's an unknown piece of nothing. Take a look at your source code there and try to find something related then... Link to comment Share on other sites More sharing options...
Anton Martin Posted November 7, 2022 Author Share Posted November 7, 2022 Thanks for your reply, I really appreciate it. I found that removing this snippet (which is in the header) gets rid of the issue. Could you possibly advise if there is anything wrong with this code? if(in_array($page->id, array(1175, 1177, 1176))){ //checkout centric pages require_once('functions/f_orders.php');} Link to comment Share on other sites More sharing options...
zoeck Posted November 8, 2022 Share Posted November 8, 2022 Looks more like the problem is in the "functions/f_orders.php" file The code you posted does not look wrong Link to comment Share on other sites More sharing options...
Anton Martin Posted November 8, 2022 Author Share Posted November 8, 2022 Super strange but when I uncommented out the previous code the error was gone! Happy days - thanks for everyone's help ? Link to comment Share on other sites More sharing options...
zoeck Posted November 8, 2022 Share Posted November 8, 2022 26 minutes ago, Anton Martin said: Super strange but when I uncommented out the previous code the error was gone! this is because require_once "loads" the content from the file and displays it ? Of course, if you delete the part, it will no longer be displayed. But it can have negative effects, since you don't seem to know what the included file does. 1 Link to comment Share on other sites More sharing options...
Anton Martin Posted November 8, 2022 Author Share Posted November 8, 2022 Oh yeah the require_once file is super important as it contains the payment api stuff. What I meant was I removed it and the error went away and then when I put it back the error stayed gone... Link to comment Share on other sites More sharing options...
zoeck Posted November 8, 2022 Share Posted November 8, 2022 1 hour ago, Anton Martin said: Oh yeah the require_once file is super important as it contains the payment api stuff. Then just have a look inside of the file "functions/f_orders.php" I Think there's the "WireDataDB" Part ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now