Op dit moment loopt mijn downloadsysteem tegen een error op. Heb al gekeken of ik ergens een foute array zag wat opgeteld werd, maar ik kon dit helaas niet vinden. Als je al een tijdje blind staart op code wil je het mss niet zien, dus hopelijk hebben jullie het verlossende antwoord :P
Fatal error: Unsupported operand types in /home/raymondvli/domains/pcmspot.com/public_html/wp-content/plugins/downloads-manager/functions.php on line 69
PHP Code:
else {
$file = @file_get_contents($link);
if($file == false)
return;
$size = strlen($file);
}
}
else {
$file = ABSPATH.'wp-content/plugins/downloads-manager/upload/'.basename($link);
$size = @filesize($file);
}
$i = 0;
$type = array("B", "KB", "MB", "GB");
while (($size/1024)>1) {
$size=$size/1024;
$i++;
}
return substr($size,0,strpos($size,'.')+3).$type[$i];
}
### Get All Incos
function FetchIcons() {
$iconsdir = '../wp-content/plugins/downloads-manager/img/icons/';
$handle = opendir($iconsdir);
if ($handle === false)
echo '<option value="">'.__('Error...','downloads-manager').'</option>';
else {
while (false !== ($icon = readdir($handle))) {
if ($icon != "." && $icon != ".." && $icon != "default.gif") {
list($width, $height, $type) = getimagesize($iconsdir.$icon);
$allowed_types = array('gif' => 1, 'jpg' => 2, 'png' => 3, 'bmp => 6');
if (in_array($type,$allowed_types) && ($width <= 48) && ($height <= 48))
echo '<option value="'.$icon.'">'.$icon.'</option>';
}
}
}
- operand types
-
15-08-2010, 23:17 #1
Online Web Solution
- Berichten
- 261
- Lid sinds
- 18 Jaar
operand types
-
In de schijnwerper
[SNELLE LEVERING] Laat je website / webshop snel en professioneel bouwen!Freelance / WerkGoogle Reviews ruilenOverige dealsSSD Webhosting al vanaf €0,85 ! 5GB SSD Opslag - Onbeperkt Dataverkeer - SitebuilderHostingOntvang tot 20% kickbackfee op je Google Ads klanten, waar wacht je nog op?Promotie -
15-08-2010, 23:27 #2
- Berichten
- 691
- Lid sinds
- 15 Jaar
Plaats eens
PHP Code:if (strlen($file) > 1) {
-
16-08-2010, 00:04 #3
Online Web Solution
- Berichten
- 261
- Lid sinds
- 18 Jaar
Parse error: syntax error, unexpected $end in /home/raymondvli/domains/pcmspot.com/public_html/wp-content/plugins/downloads-manager/functions.php on line 224
Aanvullend bericht:
tis gelukt :)Laatst aangepast door Raymond Vlieland : 16-08-2010 om 00:05 Reden: Automatisch samengevoegd.
-
16-08-2010, 00:05 #4
- Berichten
- 691
- Lid sinds
- 15 Jaar
-
16-08-2010, 00:10 #5
Online Web Solution
- Berichten
- 261
- Lid sinds
- 18 Jaar
-
16-08-2010, 00:15 #6
- Berichten
- 691
- Lid sinds
- 15 Jaar
Eigenlijk had je dit topic helemaal niet hoeven starten, het is een bekende fout:
http://wordpress.org/support/topic/p...f-functionsphp
Maar goed dat het is opgelost.
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic