WXforum.net
May 21, 2013, 03:19:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6615  •  Posts: 178461  •  Topics: 18110
Please welcome Christea, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: rss-tropical.php conflicting with dropdown-menu.php  (Read 759 times)
0 Members and 1 Guest are viewing this topic.
Russell797
Senior Member
**
Offline Offline

Posts: 69


WWW
« on: August 23, 2009, 10:26:43 AM »

I am getting this error when invoking rss-tropical.php together and following dropdown-menu.php on the same page.

I have the php dropdown menu working on all my pages. Working great except on my tropics page.

Here is a test page: http://www.lowellhighlandsweather.com/detail.php


Fatal error: Cannot redeclare startelement() (previously declared in /home/lowellhi/public_html/dropdown-menu.php:180) in /home/lowellhi/public_html/rss-tropical.php on line 125


Thanks for any help,

Russ
Logged

Lowell Highlands Current Weather Conditions

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #1 on: August 23, 2009, 11:22:30 AM »

Try using the updated http://saratoga-weather.org/rss-tropical.php?sce=view instead .. I've adjusted the function names so they won't 'collide' with the parser in dropdown-menu.php

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Russell797
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #2 on: August 25, 2009, 08:48:10 AM »

I have uploaded the newer version of rss-tropical.php but still am having the same issue. The same error message with the line error now at 134.

I am using the following include. The URL method does not work for me.



<?php
   
 $_REQUEST['zone'] = 'A';
 $_REQUEST['inc'] = 'Y';
 $_REQUEST['noprint'] = 1;
 include 'rss-tropical.php';
 if (preg_match("|There are no active|i",$advisory_html) ||
   preg_match("|Advisory Information Unavailable|i",$advisory_html)) {
       echo '<div class="advisoryBoxnoactive">' .$advisory_html .'</div>';
 }else{
       echo $advisory_html;
 }

    ?>


Here is the test page spitting out the error: http://www.lowellhighlandsweather.com/tropicsdetail_test.php

Thanks again, hope I am not being a pain in the ___

Russ
Logged

Lowell Highlands Current Weather Conditions

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #3 on: August 25, 2009, 12:50:31 PM »

Not at all Smile

Try the download from http://saratoga-weather.org/rss-tropical.php?sce=view and re-upload to your site.
It seems your rss-tropical.php doesn't have the fixes in it Sad

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Russell797
Senior Member
**
Offline Offline

Posts: 69


WWW
« Reply #4 on: August 25, 2009, 02:31:01 PM »

Thanks Ken,

Second time works like a charm....as you can see!

http://www.lowellhighlandsweather.com/tropicsdetail.php

Russ
Logged

Lowell Highlands Current Weather Conditions

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.107 seconds with 19 queries.