The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Pluhnews question Details »» | |||||||||||||||||||||||||
Hi,
I?m testing around with Pluhnews. Now my Question is if I can use PluhHeader and PluhNews alltogether on one page (with include)? I?m getting PHP errors when I try that. Can that be done? I want to combine that with Anchor Links on top of the page. I also would like to make the include call from a php page in another directory but I?m getting PHP errors with not finding ./global parameters. The last one is the date format: http://www.php.net/manual/en/function.date.php Are there some available in other languages (german in detail). I would just need the days. Thanks a lot! Lars Show Your Support
|
Comments |
#2
|
|||
|
|||
Hm.. when I only include PluhNews.php on another site I get this strange error:
Code:
Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/htdocs/forums/news_d.php:9) in /usr/local/etc/httpd/htdocs/forums/admin/functions.php on line 1573 Lars |
#3
|
|||
|
|||
I think I got it... have to move all the initialization stuff into the page, where I include the pluh php´s
|
#4
|
|||
|
|||
Could you post specifically what you did to clear up this error? I have been getting the same error and it's just about driven me to insanity.
Thanks in advance. |
#5
|
|||
|
|||
The problem seems to be that the initialization and the DB calls comes up twice if you include both headline and news in one PHP page. I did´nt try it yet (because lack of time) but if I understood it right, then setting all the Headers and Variables should happen in your PHP file to prevent double declarations... something like that.
Hope that helps! I´ll be very busy during the next days but I might be able to verify that next week! Lars |
#6
|
|||
|
|||
If I understand what you are saying, I have tried this. I still get the same errors.
|
#7
|
|||
|
|||
Did you delete the definitions in the News and Headline files after putting them into your include page?
|
#8
|
|||
|
|||
I am not sure what you mean by 'definitions'.
This is my error: Warning: Cannot add header information - headers already sent by (output started at c:\hosting\hostname\member\myname\forums\news.php: 7) in c:\hosting\hostname\member\myname\forums\admin\fun ctions.php on line 1573 After I installed this script, I changed the variables in the PluhConfig.php to suit my requirements. I checked to see that the single file, PluhHeadlines.php and PluhNews.php was working correctly. My initial test and viewing in the browser led me to believe it was. Next, I created a new .php page (which I refer to as my 'news page' and named it news.php), which is the page that was to initiate the script. I did this with an include statement. This page also was placed in the forums directory. While working on this page, and viewing it in my browser, the above error started to appear. The error appeared randomly. I could not reproduce it consistently. In fact, sometimes the page would load correctly on my machine, and not load correctly on several other machines and vice versa. Here are my trouble shooting steps: 1. I again went back to loading and viewing the PluhNews.php and PluhHeadlines.php page alone. The error appeared randomly again (on several different machines all not producing the errors consistently or at the same load time), and I could not determine what was triggering it. 2. I tried inserting the variables and eliminating the include PluhConfig.php statement in PluhHeadlines.php and PluhNews.php. Again, the errors appeared. 3. I created a test page to replace my news.php page and placed it in a different directory. Again, the errors appeared randomly. 4. I created another test page, and eliminated all include statements, combining the script into one page. Again, the errors appeared randomly. 5. I am not quite sure I even understand the error statement. So I reason if this error is happening randomly perhaps it is a cookie issue/cache issue. I turn to vBulletin control panal to investigate. 6. "Add Standard headers This option does not work with some combinations of web server, so is off by default. However, some IIS setups may need it turned on. It will send the 200 OK HTTP headers if turned on." I tried setting this to "yes". The errors did not go away. 7. "Add No-cache headers Selecting yes will cause vBulletin to add no-cache HTTP headers. These are very effective, so adding them may cause server load to increase due to increase page requests." I tried setting this to "yes". The errors did not go away. 8. I did a search for similar errors on the official vBulletin page, and lo and behold found one. The exact same error. This person was advised to check that there were no spaces before or after the <? and ?>. His problem was resolved. I check to see if this is the case with my issue, and unfortunately, it was not. 9. I do a search at vBulletin.org to see if anyone has a similar issue and stumbled on your post. I am at a loss. The fact that this issue is random and a few others have reported the same issue leads me to believe something is not speaking correctly between the script and vBulletin. Maybe it has to do with server setup. At this point, I've just about given up and am looking for another script. I am on a deadline to get this project published, and I am not a php programmer. If I had the time right now to learn this, I would but the bear is chomping at my door right now so I am at this point looking for another script or someone to take some sympathy on my predicament and tell me exactly what this error statement is telling me. Thanks for your time. |
#9
|
|||
|
|||
Check your pms... I solved this.
|
#10
|
||||
|
||||
Quote:
(I'm having the same exact problem) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|