Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-30-2014, 03:19 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 117,119
Abronsyth is on a distinguished road
Default Warning Messages (more)

I've gone through all of the threads involving warning images above the header, but could find any solutions to this.

I'm getting these errors just about everywhere:
Code:
Warning: getimagesize(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /hermes/bosoraweb162/b1009/ipg.ferrepetscom/classes/class_image.php on line 114
Here is what I believe to be the problem in the file classes/class_image.php:
PHP Code:
    public function setSrc(URL $src){
        
$this->src $src;
        list(
$this->width$this->height) = getimagesize($src->getURL());
        
$this->setAttributes("Src"); 
And here is the whole file, just in case:
PHP Code:
<?php

/**
 * The Image Class, extends from abstract GUIAccessory class.
 * It defines a standard image element to be used in HTML.
 * @category Resource
 * @package GUI
 * @author Hall of Famer 
 * @copyright Mysidia Adoptables Script
 * @link http://www.mysidiaadoptables.com
 * @since 1.3.3
 * @todo Not much at this point.
 *
 */

class Image extends GUIAccessory implements Resizable{

    
/**
     * The alt property, defines the alt text for image object.
     * @access protected
     * @var String
    */
    
protected $alt;

    
/**
     * The src property, stores the src of this image object.
     * @access protected
     * @var Link
    */
    
protected $src;
    
    
/**
     * The width property, specifies the width of this image.
     * @access protected
     * @var Int
    */
    
protected $width;
    
    
/**
     * The height property, specifies the height for this image.
     * @access protected
     * @var Int
    */
    
protected $height;
    
    
/**
     * The action property, it holds information for javascript actions.
     * @access protected
     * @var String
    */
    
protected $action;
    
    
/**
     * The type property, determines the image type as background or else.
     * @access protected
     * @var String
    */
    
protected $type;
    
    
/**
     * Constructor of Image Class, which assigns basic image properties.
     * @access public
     * @return Void
     */
    
public function __construct($src ""$alt ""$dimension ""$event ""){
        
parent::__construct($alt);
        
$src = ($src instanceof URL)?$src:new URL($src);
        
$this->setSrc($src);    
        if(!empty(
$alt)) $this->setAlt($alt);    
        if(
is_numeric($dimension)){
            
$this->setWidth($dimension);
            
$this->setHeight($dimension);
        }
        if(!empty(
$event)) $this->setEvent($event);   
    }
    
    
/**
     * The getAlt method, getter method for property $alt.    
     * @access public
     * @return String
     */
    
public function getAlt(){
        return 
$this->alt;    
    }
    
    
/**
     * The setAlt method, setter method for property $alt.
     * @param String  $alt   
     * @access public
     * @return Void
     */
    
public function setAlt($alt){
        
$this->alt $alt;
        
$this->setAttributes("Alt");
    }
    
    
/**
     * The getSrc method, getter method for property $src.    
     * @access public
     * @return URL
     */
    
public function getSrc(){
        return 
$this->src;    
    }

    
/**
     * The setSrc method, setter method for property $src.
     * @param URL  $src     
     * @access public
     * @return Void
     */
    
public function setSrc(URL $src){
        
$this->src $src;
        list(
$this->width$this->height) = getimagesize($src->getURL());
        
$this->setAttributes("Src");
    }
    
    
/**
     * The getWidth method, getter method for property $width.    
     * @access public
     * @return Int
     */
    
public function getWidth(){
        return 
$this->width;    
    }

    
/**
     * The setWidth method, setter method for property $width.
     * @param Int  $width      
     * @access public
     * @return Void
     */
    
public function setWidth($width 40){
        
$this->width $width;
        
$this->setAttributes("Width");
    }
    
        
    
/**
     * The getHeight method, getter method for property $height.    
     * @access public
     * @return Int
     */
    
public function getHeight(){
        return 
$this->height;    
    }

    
/**
     * The setHeight method, setter method for property $height.
     * @param Int  $height     
     * @access public
     * @return Void
     */
    
public function setHeight($height 40){
        
$this->height $height;
        
$this->setAttributes("Height");
    }
    
    
/**
     * The resize method, resizes the width and height simultaneous while keeping aspect ratio.
     * @param Int  $dimension
     * @param Boolean  $percent     
     * @access public
     * @return Void
     */
    
public function resize($dimension$percent FALSE){    
        if(
$percent){
            
$this->width *= $dimension;
            
$this->height *= $dimension;
        }
        else{
            
$this->width $dimension;
            
$this->height $dimension;
        }    
        
$this->setAttributes("Width");
        
$this->setAttributes("Height");
    }
    
    
/**
     * The getAction method, getter method for property $action.    
     * @access public
     * @return String
     */
    
public function getAction(){
        return 
$this->action;    
    }

    
/**
     * The setAction method, setter method for property $action.
     * @param String  $action       
     * @access public
     * @return Void
     */
    
public function setAction($action){
        
$this->action $action;
        
$this->setAttributes("Action");
    }
    
    
/**
     * The getType method, getter method for property $type.    
     * @access public
     * @return String
     */    
    
public function getType(){
        return 
$this->type;
    }
    
    
/**
     * The setType method, setter method for property $type.
     * @param String  $type  
     * @access public
     * @return Void
     */
    
public function setType($type){
        
$this->type $type;
    }

    
/**
     * The render method for Image class, it renders image data fields into HTML readable format.
     * @access public
     * @return String
     */    
    
public function render(){
        if(
$this->renderer->getStatus() == "ready"){
            if(
$this->type == "Background"){
                
$this->renderer->renderBackground();
            }
            else{
                
$this->renderer->start(); 
                
parent::render()->pause();
            }    
        }    
        return 
$this->renderer->getRender();
    }    

    
/**
     * Magic method __toString for Image class, it reveals that the object is an image.
     * @access public
     * @return String
     */
    
public function __toString(){
        return 
"This is an instance of Mysidia Image class.";
    }    

?>
Does someone see the error, here?


ERROR TWO:
And now I get this when trying to see /adopt on the site:
Code:
Warning: getimagesize(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /hermes/bosoraweb162/b1009/ipg.ferrepetscom/classes/class_image.php on line 114 Warning: getimagesize(http://ferrepets.com/templates/icons/default_avatar.gif): failed to open stream: no suitable wrapper could be found in /hermes/bosoraweb162/b1009/ipg.ferrepetscom/classes/class_image.php on line 114 Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /hermes/bosoraweb162/b1009/ipg.ferrepetscom/view/adoptview.php on line 61
and the rest is a blank white screen :/

My adoptview.php:
PHP Code:
<?php

class AdoptView extends View{
    
    public function 
index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;
        
        if(
$mysidia->input->post("submit")){
            
$aid $this->getField("aid")->getValue();
            
$name $this->getField("name")->getValue();
            
$eggImage $this->getField("eggImage")->getValue();
            
$image = new Image($eggImage);
            
$image->setLineBreak(TRUE);    
            
            
$document->setTitle("{$name} adopted successfully");            
            
$document->add($image);
            
$document->addLangvar("Congratulations!  You just adopted {$name}.  You can now manage {$name} on the ");
            
$document->add(new Link("myadopts""Myadopts Page."));
            
$document->add(new Comment(""));
            
$document->add(new Link("myadopts/manage/{$aid}""Click Here to Manage {$name}"));
            
$document->add(new Comment(""));
            
$document->add(new Link("myadopts/bbcode/{$aid}""Click Here to get BBCodes/HTML Codes for {$name}"));
            
$document->add(new Comment(""));
            
$document->addLangvar("Be sure and");
            
$document->add(new Link("levelup/{$aid}""feed "));
            
$document->addLangvar("{$name} with clicks so that they grow!");
            return;
        }
        
        
$document->setTitle($mysidia->lang->title);
        
$document->addLangvar((!$mysidia->user->isloggedin)?$mysidia->lang->guest:$mysidia->lang->member);          
        
$adoptForm = new Form("form""adopt""post");
        
$adoptTitle = new Comment("Available Adoptables");
        
$adoptTitle->setHeading(3);
        
$adoptForm->add($adoptTitle);
        
$adoptTable = new Table("table"""FALSE);
         
        
$adopts $this->getField("adopts");
        for(
$i 0$i $adopts->length(); $i++){
            
$row = new TRow;
            
$idCell = new TCell(new RadioButton("""id"$adopts[$i]->getID()));                
            
$imageCell = new TCell(new Image($adopts[$i]->getEggImage(), $adopts[$i]->getType()));
            
$imageCell->setAlign(new Align("center"));

            
$row->add($idCell);
            
$row->add($imageCell);
            
$adoptTable->add($row);  
        
        
$adoptForm->add($adoptTable);        
        
$adoptSubtitle = new Comment("Adopt");
        
$adoptSubtitle->setHeading(3);
        
$adoptForm->add($adoptSubtitle);
        
$adoptForm->add(new Comment("Adoptable Name: "FALSE));
        
$adoptForm->add(new TextField("name"));
        
$adoptForm->add(new Comment(""));
        
$adoptForm->add(new Button("Adopt Me""submit""submit"));
        
$document->add($adoptForm);    
    }
}
?>
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 09-30-2014 at 03:33 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error messages~ Pear Questions and Supports 15 09-05-2014 12:45 PM
Better Messages Buttons Inf3rnal Mys v1.2.x Mods 2 10-28-2011 11:11 AM
Help: messages and email Isura Questions and Supports 1 07-24-2011 02:09 PM
Delete All Messages in Inbox Mod [by Kae] Kaeliah Mys v1.2.x Mods 0 04-02-2011 02:30 AM
Modding Suggestion: Error Messages HIddenPanda Suggestions and Feature Requests 2 02-05-2011 09:46 PM


All times are GMT -5. The time now is 04:10 PM.

Currently Active Users: 848 (0 members and 848 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636