PDA

Bekijk Volledige Versie : script werk niet meer na migratie php5



artifact
19/11/06, 18:40
Script werkt niet meerna migratie php5

Het is het startpagina script van JPWAAG. http://linkpage.jpwaag.com/
Ik heb hem draaien op www.sieradenstart.nl
Bijna alles werkt nog.
Categorien aanmaken banners aanmaken etc.
Maar de textlinks aanmaken en editten doet het niet.
Als ik op de "verzenden" knop druk krijg ik een mooi leeg wit scherm zonder foutmeldingen.
Ik heb hem zelf al een email gestuurd maar hij heeft zelf aangegeven er niet altijd tijd voor te hebben. Laatste update is van 2005.
Onderstaande is het gedeelte van het script waar het fout gaat maar ik kan me voorstellen dat script nog ergens anders fout loopt.

Ik hoop op een simpele php.ini aanpassing of een ander verzoek wat ik kan doen aan mijn host.

<!-- table new link -->
<form action="admin.php?page=add&submit=send&action=addLink" method="post">
<table align="center" cellspacing="0" cellpadding="2" border="1" bordercolor="#000000" rules="rows">
<thead>
<tr>
<td class="header" colspan="2"><?php echo $text['addnewlink']; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td width="200" class="cell"><b><?php echo $text['disptext']; ?></b></td>
<td width="200" class="cell">
<input type="text" name="text" size="35" value="<?php formvars("text"); ?>">
</td>
</tr>
<tr>
<td class="cell"><b><?php echo $text['link']; ?></b></td>
<td class="cell"><input type="text" name="link" size="35" value="<?php formvars("link"); ?>"></td>
</tr>
<tr>
<td class="cell"><b><?php echo $text['cat']; ?></b></td>
<td class="cell">
<select name="cat">
<?php
while($catPullDownData = mysql_fetch_array($catPullDownResult)){
echo "<option value=\"".$catPullDownData['ID']."\">".$catPullDownData['cat']." \n ";
}
if($_SESSION['addCatPriv']){ ?>
<option value="newCat">Create new cat =></option>
</select><input class="tiny" type="text" name="newCat" size="15"><?php
}else{
echo "</select>";
}
?>
</td>
</tr>
<tr>
<td class="cell"><b><?php echo $text['target']; ?></b></td>
<td class="cell">
<select name="target">
<option value="_self" SELECTED>_self</option>
<option value="_blank">_blank</option>
</select>
</td>
</tr>
<tr>
<td class="cell">&nbsp;</td>
<td class="cell">
<input type="hidden" name="action" value="addLink">
<input type="hidden" name="page" value="<?php echo $currentPage; ?>">
<input type="submit" name="submit" value="<?php echo $text['submitButton']; ?>">
</td>
</tr>
</tbody>
</table>
</form>
<!-- end table new link -->

Foutmelding gevonden regel 10 en nogwel in de

Cannot use string offset as an array

9 $text['nolinks']="Category empty.";
10 $text['days'][0]="Sunday";
11 $text['days'][1]="Monday";
12 $text['days'][2]="Tuesday";
13 $text['days'][3]="Wednesday";
14 $text['days'][4]="Thursday";
15 $text['days'][5]="Friday";
16 $text['days'][6]="Saturday";