Fork me on GitHub
Current releases are 2.1.1 (2 Aug 2014) and 2.0.18.13 (5 Aug 2014)
Ready for 2.1? Find out if your favorite plugins are compatible.
The 2.0 branch will no longer receive updates after Dec 2014.

Mootools

2»

Comments

  • hi irmanhilmi, you are not the only one! I own a very large forum and I have not yet figured out why this happens periodically! The extensions.php file resets itself and puts the above message into it. The result are a broken extension file which leads to having to manually edit the file with "<?php ?>" and then enabling all of the extensions again! Could you please solve this issue? Thank you. Unfortunately I am using PHP4.
  • Is there anybody smart out there who has at least an Idea to solve this problem?
  • Error Message (this is the trash data in extensions.php), periodically: include($Configuration['EXTENSIONS_PATH']."Mootools/appendix.php"); include($Configuration['EXTENSIONS_PATH']."Mootools/default.php");
  • I looked a bit at the code but didn't discover where the appendix line was added :S
  • such a great extension.. i cant stand that i cant use it anymore...due to the (seemingly) random above mentioned issue.
    I anint complaining though..vanilla maker and all you ex.t makers are pretty cool for doing this.. all free..
  • Yes, but you almost never hear the positive feedback, only the negative.

    I use it and it works just dandy!
  • Ok, temporary solution which worked has been found: Deactivated the plugin and deleted it. ;-) Seems like it doesn't work well with PHP4 or something else on my Server.
  • Unfortunately the same happens at a decent PHP5 webhost!

    Any advices?

    Thanks,
    Zen
  • Error Message (this is the trash data in extensions.php), periodically:

    include($Configuration['EXTENSIONS_PATH']."Mootools/appendix.php");
    include($Configuration['EXTENSIONS_PATH']."Mootools/default.php");

    After this message no extensions can be activated and the conf/extensions page is blank
    How do you rebuild the Conf/extensions page? What should it look like?
  • repaired, mootools needs some upgrading
  • yup...it rewrites the extensions.php whenever it wants. My advice is to backup your extensions.php and overwrite it when it happens. for some odd reason it takes out the line if (!defined('IN_VANILLA')) exit(); from the extensions.php. has anyone found a permanent solution to this ?
  • I've got no answers to any of the above, but I do have a couple of feature suggestions instead ;)
    1. Please could the packer be optional, I personally don't like the decoding penalty associated with Dean's Packer?
    2. An alternative JSmin-based option would be great :)
    3. Please could .js be added to the end of the cache file, that way apache mod_deflate can easily compress the cache files!
  • i may have found a temp. solution, just comment out the line 3 of the extensions.php like so: // Make sure this file was not accessed directly and prevent register_globals configuration array attack //if (!defined('IN_VANILLA')) exit(); // Enabled Extensions seems to work for me, but 3 days after it went ammuck again... ...sorry i ever said this...but it was worth a suggestion...does'nt work
  • I wonder why this only seems to affect some users and not others? It's not broken for me yet. Perhaps ppl that have it break should list your Apache, PHP and MySQL versions to see if there's a common version of something that's causing the error to show up?
  • 3. Please could .js be added to the end of the cache file, that way apache mod_deflate can easily compress the cache files!
    Sorted! GZip compression using mod_deflate now works on the mootools cache file ;) (~50% saving) It might not be elegant, but it works!

    mootools.class.php

    Find line 43 if(!is_file("$Dir/cache/$Hash")) {and change it to this if(!is_file("$Dir/cache/$Hash".".js")) {
    Find line 50 $this -> WriteFile("$Dir/cache/$Hash".".js", $Script, 'x');and change it to this $this -> WriteFile("$Dir/cache/$Hash", $Script, 'x');
    Find line 53 $File = "extensions/Mootools/cache/$Hash";and change it to this $File = "extensions/Mootools/cache/$Hash".".js";
  • 1. Please could the packer be optional, I personally don't like the decoding penalty associated with Dean's Packer?
    I have a hackish way to turn the packer off, if like me you don't like the decode penalty associated with it.

    mootools.class.php

    Find line 48-49 $Packer = new JavaScriptPacker($Script);
    $Script = $Packer -> pack();
    and change comment it out /*$Packer = new JavaScriptPacker($Script);
    $Script = $Packer -> pack();*/
    2. An alternative JSmin-based option would be great :)
    I was bored so I Everything seems to work well still, along side JQuery and some other extensions. Size for the cached file is ~44kb and ~13kb GZipped.

    Edit: If anyone wants to try it, download it and give it a go.
  • a very sloppy sollution is a cron...copy the backup over the main file e.g. cp -f /html/conf/extorig/extensions.php /html/conf/extensions.php i just hope it stays stable for the time its not copied. I have Mysql 5.0 php 5.0. until another solution is found, ill have to go with this one...copy every 30 minutes.
  • This problem just started for me too, and I'm thinking about doing DeGaR007's cron solution, but I'm going to see if I can compare the files sizes so I don't copy over my 'good' file.

    Maybe we should post what extensions we are using to see if there is a common element to what is causing this problem? My extensions are as follows:

    <?php
    // Make sure this file was not accessed directly and prevent register_globals configuration array at$
    if (!defined('IN_VANILLA')) exit();
    // Enabled Extensions
    include($Configuration['EXTENSIONS_PATH']."Mootools/default.php");
    include($Configuration['EXTENSIONS_PATH']."AccountPictures/default.php");
    include($Configuration['EXTENSIONS_PATH']."AjaxQuote/default.php");
    include($Configuration['EXTENSIONS_PATH']."ApplicantEmailVerification/default.php");
    include($Configuration['EXTENSIONS_PATH']."Audioscrobbler/default.php");
    include($Configuration['EXTENSIONS_PATH']."CAPTCHA/default.php");
    include($Configuration['EXTENSIONS_PATH']."CategoryIcons/default.php");
    include($Configuration['EXTENSIONS_PATH']."CategoryJumper/default.php");
    include($Configuration['EXTENSIONS_PATH']."CategoryRoles/default.php");
    include($Configuration['EXTENSIONS_PATH']."ChatStatus/default.php");
    include($Configuration['EXTENSIONS_PATH']."CommentRemoval/default.php");
    include($Configuration['EXTENSIONS_PATH']."ForcedBBCode/default.php");
    include($Configuration['EXTENSIONS_PATH']."GoogleAnalytics/default.php");
    include($Configuration['EXTENSIONS_PATH']."GuestWelcome/default.php");
    include($Configuration['EXTENSIONS_PATH']."HiddenText/default.php");
    include($Configuration['EXTENSIONS_PATH']."DiscussionFilters/default.php");
    include($Configuration['EXTENSIONS_PATH']."JQuery/default.php");
    include($Configuration['EXTENSIONS_PATH']."JQmedia/default.php");
    include($Configuration['EXTENSIONS_PATH']."ModTools/default.php");
    include($Configuration['EXTENSIONS_PATH']."./default.php");
    include($Configuration['EXTENSIONS_PATH']."MyComicVine/default.php");
    include($Configuration['EXTENSIONS_PATH']."MyGamerCard/default.php");
    include($Configuration['EXTENSIONS_PATH']."NewDiscussions/default.php");
    include($Configuration['EXTENSIONS_PATH']."PageMng/default.php");
    include($Configuration['EXTENSIONS_PATH']."ParticipatedThreads/default.php");
    include($Configuration['EXTENSIONS_PATH']."PredefinedAttributes/default.php");
    include($Configuration['EXTENSIONS_PATH']."PreviewPost/default.php");
    include($Configuration['EXTENSIONS_PATH']."PrivateMessages/default.php");
    include($Configuration['EXTENSIONS_PATH']."ReportPost/default.php");
    include($Configuration['EXTENSIONS_PATH']."RoleListFix/default.php");
    include($Configuration['EXTENSIONS_PATH']."SetList/default.php");
    include($Configuration['EXTENSIONS_PATH']."Signatures/default.php");
    include($Configuration['EXTENSIONS_PATH']."SpellChecker/default.php");
    include($Configuration['EXTENSIONS_PATH']."UserFilters/default.php");
    include($Configuration['EXTENSIONS_PATH']."Vanillacons/default.php");
    include($Configuration['EXTENSIONS_PATH']."Nugget/default.php");
    include($Configuration['EXTENSIONS_PATH']."PFC/default.php");
    include($Configuration['EXTENSIONS_PATH']."Mootools/appendix.php");
    ?>

  • this looks weird:include($Configuration['EXTENSIONS_PATH']."./default.php");
  • Yeah that was a badly installed extension that I've never moved to a subfolder.
  • HELP when i disable the extension, it seems to be still working in the background, when i remove the folder from the extensions directory i get this error:


    Warning: main(/kunden/121606_86830/rckmydsk/extensions/Mootools/appendix.php) [function.main]: failed to open stream: No such file or directory in /kunden/121606_86830/rckmydsk/conf/extensions.php on line 23

    Warning: main(/kunden/121606_86830/rckmydsk/extensions/Mootools/appendix.php) [function.main]: failed to open stream: No such file or directory in /kunden/121606_86830/rckmydsk/conf/extensions.php on line 23

    Warning: main() [function.include]: Failed opening '/kunden/121606_86830/rckmydsk/extensions/Mootools/appendix.php' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/121606_86830/rckmydsk/conf/extensions.php on line 23
  • if you removed the extension then I think have to manually delete this mootools line in conf/extensions.php
2»
This discussion has been closed.