• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki Discussion
    • General Discussion
    • Supermod when editing a wiki page displays a blank page (Vbulletin)

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 14 of 14

    Thread: Supermod when editing a wiki page displays a blank page (Vbulletin)

    • Thread Tools
      • Show Printable Version
    1. January 9, 2016 #1
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148

      Exclamation Supermod when editing a wiki page displays a blank page (Vbulletin)

      Hi pegasus

      In vbulletin 4.2.3. Using the last release of VaultWiki the Supermod when editing a wiki page displays a blank page.


      In a previous reelease you had solved so:

      In vault/core/model/parser/instance/vb3.php,

      find:
      Code:
      Code:
      $this->_default->options["$key"] =& $this->model->options["$key"];
      Replace with:
      Code:
      Code:
      $this->_default->options["$key"] = $this->model->options["$key"];
      Now the code is changed.
      Can you help me fix the problem?
      Reply With Quote Reply With Quote

    2. January 10, 2016 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      Temporarily add the following to the end of vault/config.php so you can see why the page is blank:
      Code:
      ini_set('display_errors', 1);
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. January 11, 2016 #3
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      Hi pegasus

      The page it's not blank because it generates an error.

      The page opens regularly when i click on Change, only that the contain editor is white and does not contain written.
      Reply With Quote Reply With Quote

    4. January 11, 2016 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      If there is no toolbar buttons, then it might be a Javascript error.
      OR
      The editor loads as a separate AJAX request. If it is empty, then that second request is having an error.

      If you don't have a log of these errors, you will have to submit a Ticket Support request: https://www.vaultwiki.org/members/?d...e&productid=20
      Provide a login for a user that has the problem.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. January 11, 2016 #5
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      I think once we had talked about this issue here:
      https://www.vaultwiki.org/threads/5661/
      Reply With Quote Reply With Quote

    6. January 11, 2016 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      That thread is over 1 year old. The code probably changed a lot since then. You will need to provide the new log messages from today.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. January 12, 2016 #7
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      Hi Pegasus This error it's simple to show

      I add two screenshot:

      Admin.jpg


      User.jpg
      Reply With Quote Reply With Quote

    8. January 12, 2016 #8
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      That picture is not an error message; it is the behavior, which I already understand from the description. I cannot tell you why the behavior is happening without the error message that is generated behind the scenes. I need you to either find the error message in your logs, or submit the Ticket Support request so we can locate the error message for you.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    9. January 13, 2016 #9
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      The last time you had solved so.
      Now, however, the code of the file is changed.

      In vault/core/model/parser/instance/vb3.php,

      find:
      Code:
      Code:
      $this->_default->options["$key"] =& $this->model->options["$key"];
      Replace with:
      Code:
      Code:
      $this->_default->options["$key"] = $this->model->options["$key"];

      In the log files is present this error

      Code:
      Wed Jan 13 18:47:51 2016] [error] [client 82.55.34.74] PHP Warning:  json_encode(): Invalid UTF-8 sequence in argument in /var/www/clients/client1/web1/web/forum/vault/core/model/block/similar/vw.php on line 86, referer: [url]http://www.mysite.it/forum/member.php?9680[/url]
      [Wed Jan 13 18:47:57 2016] [error] [client 82.55.34.74] PHP Strict Standards:  Only variables should be passed by reference in /var/www/clients/client1/web1/web/forum/vault/core/model/parser/instance/vb3.php on line 171, referer: [url]http://www.mysite.it/forum/wiki_index/[/url]
      [Wed Jan 13 18:47:57 2016] [error] [client 82.55.34.74] PHP Warning:  array_merge(): Argument #2 is not an array in /var/www/clients/client1/web1/web/forum/vault/core/view/factory/content/versioned/vw.php on line 158, referer: [url]http://www.mysite.it/forum/wiki_index/[/url]
      [Wed Jan 13 18:48:08 2016] [error] [client 82.55.34.74] PHP Fatal error:  Cannot assign by reference to overloaded object in /var/www/clients/client1/web1/web/forum/vault/core/model/parser/instance/vw.php on line 58, referer: http://www.mysite.it/forum/wiki_index/Aria-compressa?do=edit[/url]
      Reply With Quote Reply With Quote

    10. January 14, 2016 #10
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      Hi Pegasus

      You have a solution for the problem?
      Reply With Quote Reply With Quote

    11. January 14, 2016 #11
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      No, it took a long time to find where to download non-supported versions of PHP. Now I am having a hard time getting the old PHP versions to compile on newer systems. It would have been much easier and faster if you had submitted the ticket. It might be several days to get a solution without that.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    12. January 14, 2016 #12
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      My php version is 5.4.45-0+deb7u2
      Last edited by migratoria; January 14, 2016 at 11:44 AM.
      Reply With Quote Reply With Quote

    13. January 14, 2016 #13
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      Replace the class in vault/core/model/parser/default/wrapper/vw.php with the following:
      Code:
      class vw_Parser_Default_Wrapper_Model
      {
      	public $instance;
      
      	protected $class;
      
      	protected $parser;
      
      	protected $reflection_cache = array();
      
      	public function _construct_delayed(&$parser, &$instance)
      	{
      		$this->parser =& $parser;
      		$this->instance =& $instance;
      
      		foreach (get_object_vars($parser) AS $property => $blah)
      		{
      			if (!isset($this->$property))
      			{
      				$this->$property =& $this->parser->$property;
      			}
      		}
      	}
      
      	public function __call($name, $args)
      	{
      		if (!is_object($this->parser))
      		{
      			trigger_error("Call to a method <b>$name</b> on a non-object.", E_USER_ERROR);
      			exit;
      		}
      
      		if (!method_exists($this->parser, $name))
      		{
      			trigger_error('Method <b>' . get_class($this->parser) . '::' . $name . '</b> is undefined.', E_USER_ERROR);
      			exit;
      		}
      
      		$ref = new ReflectionMethod($this->parser, $name);
      
      		if ($ref->isPublic())
      		{
      			return call_user_func_array(array($this->parser, $name), $args);
      		}
      		else
      		{
      			return null;
      		}
      	}
      
      	public function get($key)
      	{
      		if (isset($this->$key))
      		{
      			return $this->$key;
      		}
      		else if (!array_key_exists($key, $this->reflection_cache))
      		{
      			if (is_object($this->parser) AND property_exists($this->parser, $key))
      			{
      				$ref = new ReflectionProperty($this->parser, $key);
      
      				if ($ref->isPublic())
      				{
      					$this->reflection_cache["$key"] =& $this->parser->$key;
      				}
      				else
      				{
      					$ref->setAccessible(true);
      					return $ref->getValue($this->parser);
      				}
      			}
      			else
      			{
      				return null;
      			}
      		}
      
      		return $this->reflection_cache["$key"];
      	}
      
      	public function get_class()
      	{
      		if ($this->class === null)
      		{
      			$tmp = $this->get('class');
      
      			if ($tmp)
      			{
      				$this->class = $tmp;
      			}
      			else
      			{
      				$this->class = 'bbcode';
      			}
      		}
      
      		return $this->class;
      	}
      }
      Please let me know today if this causes a problem with BB-Codes working or anything like that.

      Tested on PHP 7.1.0-dev, PHP 5.4.3, and PHP 5.3.4.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    14. January 17, 2016 #14
      migratoria
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      migratoria is offline
      Regular Member
      Join Date
      July 26, 2014
      Posts
      64
      Rep Power
      148
      Hi Pegasus
      The new code has solved the problem.

      Tomorrow I do the tests to check that does not generate new errors

      I make you know


      TANKS
      Reply With Quote Reply With Quote

    Similar Threads

    1. Blank page on wiki root
      By beernuts in forum VaultWiki Questions
      Replies: 6
      Last Post: April 10, 2013, 2:43 PM
    2. [Miscellaneous Hacks] Newest Wiki pages link, in Forumhome, and in Wiki front page
      By basketmen in forum vBulletin 3.x Addons
      Replies: 5
      Last Post: July 27, 2011, 4:45 AM
    3. How to make a page like vaultwiki.org? And how to edit 1st special page?
      By ebadgley in forum VaultWiki Questions
      Replies: 2
      Last Post: July 22, 2011, 8:56 PM
    4. Blank Page Error
      By pegasus in forum VaultWiki Questions
      Replies: 0
      Last Post: October 20, 2008, 11:20 PM
    5. Editing Articles, Page Reload
      By vimto in forum VaultWiki Questions
      Replies: 6
      Last Post: July 21, 2008, 2:39 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • 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 Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:25 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.