We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37449
    • 57 Posts
    php 5.3.0
    apache 2.2.11
    mysql server 5.1.36-community-log
    Revo 2.2.1
    Gallery 1.5.0

    Have done a clean install of 2.2.1 on my Win7 laptop running WAMP 2.0 but when I try and assign an image to the TV in a resource, the manager crashes out.

    Doesn't matter if I use an image or gallery item, same behaviour.

    I have also set up a media source for the gallery type, set the base path and base url. This is correctly assigned to the TV however I do get the following:

    Notice: Uninitialized string offset: 0 in D:\Web\home\core\components\gallery\elements\tv\properties\galleryitem.php on line 49
    


    This is the code at line 49:
                if ($p[0] != '') {
                    $v = $param[1];
                    if ($v == 'true') $v = 1;
                    if ($v == 'false') $v = 0;
                    $settings[$param[0]] = $v;
                }
    


    When I then go to the resource and assign the TV, selecting the image causes the Manager to crash out.

    It seems to work fine in FF 11

    Anyone else have this issue?


    Thx
    Daz


      formerly sumodaz on here!
      • 37449
      • 57 Posts
      More info:

      Having assign the image in the resource using FF, I can edit the resource in Chrome with no problem.
        formerly sumodaz on here!
        • 37449
        • 57 Posts
        Now it crashes out in Firefox too!
        This is very frustrating!

        I had the same error in the previous version, but didn't resolve that....
        I'm guessing it's something on my set up but I don't know what! There's nothing in the modx error log, or the cache error log....

        Off to trawl the apache logs, but if anyone has a suggestion of where else to look, I'd be really grateful smiley
          formerly sumodaz on here!
          • 36782
          • 109 Posts
          excact same issue here... anyone?

          win7 x64, wampp, (xampp for win.)
          modx 2.2.4, gallery is yesterday's version.
            • 27708 MODX Staff
            • 2,502 Posts
            I'd also look at the script console in the web inspector while performing the operations to see if there is a particular JS script error in Ext or via part of the action itself.
              Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
              • 36782
              • 109 Posts
              that's a good idea. I forgot to turn off js and css compression with this install, too. Will check.
                • 36782
                • 109 Posts
                When trying to edit the TV, this is on the Input Options tab, at the bottom:
                Parse error: syntax error, unexpected '?' in C:\xampp\htdocs\catherinehahn\core\cache\includes\elements\modplugin\3.include.cache.php on line 2
                [EDIT]the above error only appeared after turning on richtext for the gallery. I turned it back off, and it went away, along with several others which cropped up. But the below one still stands.[/EDIT]
                And this is on the Output Options tab, where none of the options will show:
                Notice: Uninitialized string offset: 0 in C:\xampp\htdocs\catherinehahn\core\components\gallery\elements\tv\properties\galleryitem.php on line 49

                compress_js and compress_css are off now.

                Unfortunately, there were no js errors that I could see in the inspector. [ed. note: unsub777 last edited this post 14 years, 2 months ago.]
                  • 36782
                  • 109 Posts
                  Still haven't managed to fix this. Could it maybe be an incompatibility with XAMPP environments? Never had a problem until latest versions.

                  Looking at the file in question, it does look as though it's going to be a javascript error, but there are no hints at all in the inspector.

                  damn it. It's always something. sad web dev used to be fun for me. What happened? Now I just chase bugs and never catch them.
                    • 36782
                    • 109 Posts
                    just an update: nothing to do w/ XAMPP; fresh install on Greengeeks, modx2.2.4, gallery july 3 version. Output options not showing up at all, no errors in js console and no errors in php error log.

                    guess I will have to completely rethink a rather large part of this project.

                    edit: in case it matters, during my last and final uninstall of Gallery, this was in the output:
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnTVInputRenderList
                    )
                    
                    
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnTVInputPropertiesList
                    )
                    
                    
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnTVOutputRenderList
                    )
                    
                    
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnTVOutputRenderPropertiesList
                    )
                    
                    
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnDocFormPrerender
                    )
                    
                    
                    Skipping modPluginEvent object (data object does not exist and cannot be removed): Array
                    (
                        [pluginid] => 0
                        [event] => OnManagerPageBeforeRender
                    )
                    
                    
                    

                    It stuck out to me 'cause o f the tv stuff.Who knows, maybe it can help people who try and use Gallery's TVs in teh future. [ed. note: unsub777 last edited this post 14 years, 2 months ago.]