Viewing 15 posts - 16 through 30 (of 64 total)
  • Author
    Posts
  • meyoik Friend
    #533595

    I’m still getting the same error as all of y’all >:(….thought this would be fixed by now….

    When will this get fixed??

    Scott Lavelle Friend
    #533614

    Does anyone know if this is the only issue with 3.3.0? Will there be an official 3.3.0 compatible version of the framework released, or will it just be specifically for this bug.

    Scott Lavelle - Technical Resource Solutions, LLC
    Certified Joomla Administrator

    citroen1968 Friend
    #533730

    can somebody tell me if they have same issue with licensed templates like jaSugite

    Ninja lead can you tell me the status of the problem
    when ik look at http://pm.joomlart.com/browse/T3-52

    On Hold [ 10000 ] Reopened [ 4 ]

    and how high is the priority of that

    thanks for support Ninja lead

    mesasel Friend
    #533741

    Write just to say that I have the same problem, and waiting for update. Can’t finish my project without this update…:eek:

    Ninja Lead Moderator
    #533776

    @jscarfe, @mesasel, @citroen1968, @slavelle, @meyoik, @mmckeen, @citroen1968 and guys: Please update following a quick fix for the Thememagic 500 error here. Hope it helps.

    mesasel Friend
    #533815

    @ninja Lead all I need to do is to copy/paste code that I have found on Github from your link, in those files:

      source/plg_system_t3/includes/admin/theme.php
      source/plg_system_t3/includes/format/less3.3.php

    Don’t need to do anything else?

    Thank you very much on everything!

    mmckeen Friend
    #533820

    Thememagic loads now but all I get are text strings in the preview area:

    `.n@body-bg: #fffn//** Global text color on `
    `.n@text-color: @gray-dark;nn//** Global textual link color.n@link-color: @brand-primary;n//** Link hover color set via `darken()` function.n@link-hover-color: darken(@link-color, 15%);nnn//== Typographyn//n//## Font, line-height, and color for body text, headings, and more.nn@font-family-sans-serif: “Helvetica Neue”, Helvetica, Arial, sans-serif;n@font-family-serif: Georgia, “Times New Roman”, Times, serif;n//** Default monospace fonts for “, “, and `

    I also get this message when I click on the “preview” button:

    You have navigated to another page which using another template or your current preview page does not support LESS. ThemeMagic has been temporarily disabled.

    citroen1968 Friend
    #533869

    Hello Ninja Lead,

    could not login it says
    you do not have permission to access this page. This could be due to one of several reasons:

    I think that because I do not have any licensed template only t3bs3 and the plugin that is the reason I not can login to your link

    thanks

    daveburstein Friend
    #533870

    Note there’s been a post with problems. I haven’t tried it yet myself. Good luck all and thanks to the folks who did the fix.

    Showing 2 changed files with 139 additions and 0 deletions. Show diff stats
    2  source/plg_system_t3/includes/admin/theme.php View
    @@ -14,6 +14,8 @@
    14 14

    15 15
    jimport(‘joomla.filesystem.file’);
    16 16
    jimport(‘joomla.filesystem.folder’);
    17
    +// add new Less format class to work with joomla 3.3
    18
    +T3::import(‘format/less3.3’);
    17 19

    18 20
    /**
    19 21
    *
    137  source/plg_system_t3/includes/format/less3.3.php View
    @@ -0,0 +1,137 @@
    +<?php
    +/**
    + *——————————————————————————
    + * @package T3 Framework for Joomla!
    + *——————————————————————————
    + * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
    + * @license GNU General Public License version 2 or later; see LICENSE.txt
    + * @authors JoomlArt, JoomlaBamboo, (contribute to this project at github
    + * & Google group to become co-author)
    + * @google group: https://groups.google.com/forum/#!forum/t3fw
    + * @link: http://t3-framework.org
    + *——————————————————————————
    + */
    +
    +namespace JoomlaRegistryFormat;
    +
    +use JoomlaRegistryAbstractRegistryFormat;
    +use stdClass;
    +
    +/**
    + * PHP class format handler for Registry
    + *
    + * @since 1.0
    + */
    +class Less extends AbstractRegistryFormat
    +{
    + /**
    + * Converts a name/value pairs object into an LESS variables declaration
    + */
    + public function objectToString($object, $params = array())
    + {
    + // Initialize variables.
    + $result = array();
    +
    + // Iterate over the object to set the properties.
    + foreach (get_object_vars($object) as $key => $value)
    + {
    + // If the value is an object then we need to put it in a local section.
    + $result[] = $this->getKey($key) . ‘: ‘ . $this->getValue($value);
    + }
    +
    + return implode(“n”, $result);
    + }
    +
    + /**
    + * Converts an LESS variables string to name/value pair object
    + */
    + public function stringToObject($data, array $options = array())
    + {
    + // If no lines present just return the object.
    + if (empty($data))
    + {
    + return new stdClass;
    + }
    +
    + // Initialize variables.
    + $obj = new stdClass;
    + $lines = explode(“n”, $data);
    +
    + // Process the lines.
    + foreach ($lines as $line)
    + {
    + // Trim any unnecessary whitespace.
    + $line = trim($line);
    +
    + // Ignore empty lines and comments.
    + if (empty($line) || (substr($line, 0, 1) == ‘/’) || (substr($line, 0, 1) == ‘*’))
    + {
    + continue;
    + }
    +
    + // Check that an equal sign exists and is not the first character of the line.
    + if (!strpos($line, ‘:’))
    + {
    + // Maybe throw exception?
    + continue;
    + }
    +
    + // Get the key and value for the line.
    + list ($key, $value) = explode(‘:’, $line, 2);
    +
    + // Validate the key.
    + if (preg_match(‘/@[^A-Z0-9_]/i’, $key))
    + {
    + // Maybe throw exception?
    + continue;
    + }
    +
    + // Validate the value.
    + //if (preg_match(‘/[^()A-Z0-9_-];$/i’, $value))
    + //{
    + // Maybe throw exception?
    + // continue;
    + //}
    +
    + // If the value is quoted then we assume it is a string.
    +
    + $key = str_replace(‘@’, ”, $key);
    + $value = str_replace(‘;’, ”, $value);
    + $value = preg_replace(‘///(.*)/’, ”, $value);
    + $value = trim($value);
    + $obj->$key = $value;
    + }
    +
    + // Cache the string to save cpu cycles — thus the world 🙂
    +
    + return $obj;
    + }
    +
    + /**
    + * Method to get a value in an INI format.
    + *
    + * @param mixed $value The value to convert to INI format.
    + *
    + * @return string The value in INI format.
    + *
    + * @since 11.1
    + */
    + protected function getValue($value)
    + {
    + return $value . ‘;’;
    + }
    +
    + /**
    + * Method to get a value in an INI format.
    + *
    + * @param mixed $key
    + *
    + * @return string The value in INI format.
    + *
    + * @since 11.1
    + */
    + protected function getKey($key)
    + {
    + return ‘@’ . $key;
    + }
    +}

    Ninja Lead Moderator
    #533933

    Please download and extract my attached files and copy them to files below: plugins/system/t3/includes/format/less3.3.php and plugins/system/t3/includes/admin/theme.php.

    PS. Please backup old files first.


    1. fix.zip
    alyks Friend
    #533991

    The fix didn’t work for me, i can’t login to your support service to answer back to my ticket. (Ticket ID: FHT-969-43714)

    I’m going back to former version of joomla.

    citroen1968 Friend
    #534048

    Hallo Ninja Lead,

    fix did solved my problem with error 500

    Scott Lavelle Friend
    #534087

    Asking again: is this the only compatibility issue with T3 and Joomla 3.3.0? I don’t ever even use Thememagic, so while I’m glad this fix is here, I’m more concerned with the undiscovered things that will creep up and hit me.

    Thoughts?

    Scott Lavelle - Technical Resource Solutions, LLC
    Certified Joomla Administrator

    majin_shinsa Friend
    #534103

    I added the 2 files (after renaming my files xbackup.php) and had to change 2 spots in the theme.php. doing a ctrl+f in note++ found 2 references to less.php. thememagic wouldn’t work until I changed those 2 references. The only way i can save is by changing colors and tell it yes to saving, but clicking on save or save as does nothing.

    mmckeen Friend
    #534186

    I tried these two files also. ThemeMagic opens but I am still getting the text strings that I posted above in this thread.

Viewing 15 posts - 16 through 30 (of 64 total)

This topic contains 63 replies, has 23 voices, and was last updated by  Ninja Lead 8 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum