We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8677
    • 50 Posts
    Quote from: goldsky at Dec 11, 2010, 07:51 AM

    Quote from: Elena at Dec 10, 2010, 11:45 AM

    Modx write :
    (in "отчёты" - "просмотр событий")
    Failed opening ’/home/u47330/photo.teamb.ru/www/assets/modules/easy2/index.php’ for inclusion (include_path=’.:/usr/local/share/pear:/home/u47330/photo.teamb.ru/www/manager/includes/’)
    Does the file exist?

    Yes.
    What CHMOD this file must have? Now CHMOD is 666.

    Quote from: goldsky at Dec 11, 2010, 07:51 AM

    Did you upload everything?

    Yes.

    In other my site (other hosting) Easy2Gallery is working, all is OK.
    (with previuos version, e2g-1.4.0-rc1-r268)

      • 11055 ☆ A M B ☆
      • 3,112 Posts
      could you get any error.log file from your site through FTP ?
      there is something with your server’s setting that prevent easy2 to load the index.php.
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 8677
        • 50 Posts
        Quote from: goldsky at Dec 11, 2010, 01:43 PM

        could you get any error.log file from your site through FTP ?
        there is something with your server’s setting that prevent easy2 to load the index.php.


        [Fri Dec 10 20:44:29 2010] [error] PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ’}’ in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/includes/classes/e2g.public.class.php on line 17


        [Sat Dec 11 20:20:31 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Sat Dec 11 20:20:34 2010] [error] PHP Warning: set_time_limit() has been disabled for security reasons in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 101
        [Sat Dec 11 20:20:37 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Sat Dec 11 20:20:39 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 14:50:39 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 14:50:41 2010] [error] PHP Warning: set_time_limit() has been disabled for security reasons in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 101
        [Mon Dec 13 14:50:43 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 14:50:45 2010] [error] PHP Warning: set_time_limit() has been disabled for security reasons in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 101
        [Mon Dec 13 14:50:47 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 15:02:44 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 15:02:47 2010] [error] PHP Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 1253
        [Mon Dec 13 15:02:50 2010] [error] PHP Warning: set_time_limit() has been disabled for security reasons in /home/u47330/photo.teamb.ru/www/assets/modules/easy2/install/index.php on line 101
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          I bet you’re using PHP 4. If it’s true, it’s a dead end. Easy2 should be run on the PHP 5.

          And your hosting doesn’t allow the set_time_limit() function. You can search that line, and comment it out, if you have to.
            Rico
            Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
            MODx is great, but knowing how to use it well makes it perfect!

            www.virtudraft.com

            Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

            Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

            Maintainter/contributor of Babel

            Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
            • 8677
            • 50 Posts
            Quote from: goldsky at Dec 13, 2010, 10:30 AM

            And your hosting doesn’t allow the set_time_limit() function. You can search that line, and comment it out, if you have to.

            Thank you!
            I commented it out.

            Quote from: goldsky at Dec 13, 2010, 10:30 AM

            I bet you’re using PHP 4. If it’s true, it’s a dead end. Easy2 should be run on the PHP 5.

            Yes. I asked my hosting provider to change PHP version.
            Now I use PHP 5.

            Easy 2 Gallery had installed now! =))) Thank you very much!!! smiley

            But I have problems :

            1)

            If I create folder with web-interface - then I can’t upload pictures by FTP :

            Command: PASV
            Response: 227 Entering Passive Mode (87,242,64,21,117,35).
            Command: STOR 408_20.jpg
            Response: 550 408_20.jpg: Permission denied
            Error: Upload failed

            And I can’t create with FTP subfolder in this folder (which created with web-interface) :

            Command: CWD /photo.teamb.ru/www/easy2gallery/foreign_tours/
            Response: 250 CWD command successful
            Command: MKD egypt
            Response: 550 egypt: Permission denied


            CHMOD:
            /easy2gallery/ 777
            /easy2gallery/foreign_tours 755


            Is it problem with owner ?

            Problem like this :
            http://modxcms.com/forums/index.php/topic,23177.msg318776.html#msg318776


            2)
            In page with gallery browser says about error :

            Сведения об ошибке на веб-странице

            Агент пользователя: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)

            Сообщение: ’hs’ - определение отсутствует
            Строка: 77
            Символ: 5
            Код: 0
            URI-код: http://photo.teamb.ru/main/russian_tours/elbrus?sid=1&gid=5&gpn=0


            3)

            In default.config.easy2gallery.php :
            if I write
            ’dir’ => ’easy2gallery/’,
            then path to pictures is not right :

            http://photo.teamb.ru/main/russian_tours/easy2gallery/_thumbnails/russian_tours/elbrus/01_elbrus_id10_sid1_140x140.jpg
            ( "main/russian_tours" - it is not required)

            if I write
            ’dir’ => ’/easy2gallery/’,
            then in the page with gallery no images :
            http://photo.teamb.ru/main/russian_tours/elbrus/

              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Because you’re using Friendly URL, you need to add base href before any script’s href or CSS’s link rel.
              <base href="[(site_url)]" />
              

              And please fix the easy2’s CSS path, do not add a slash "/" in front of the assets/...

              One more thing,
              Please add <!DOCTYPE ... on top of your template.
              Otherwise your site will be read as Quirk Mode by browsers.
                Rico
                Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                MODx is great, but knowing how to use it well makes it perfect!

                www.virtudraft.com

                Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                Maintainter/contributor of Babel

                Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                Quote from: Elena at Dec 13, 2010, 03:03 PM

                1) If I create folder with web-interface - then I can’t upload pictures by FTP :

                Command: PASV
                Response: 227 Entering Passive Mode (87,242,64,21,117,35).
                Command: STOR 408_20.jpg
                Response: 550 408_20.jpg: Permission denied
                Error: Upload failed

                And I can’t create with FTP subfolder in this folder (which created with web-interface) :

                Command: CWD /photo.teamb.ru/www/easy2gallery/foreign_tours/
                Response: 250 CWD command successful
                Command: MKD egypt
                Response: 550 egypt: Permission denied


                CHMOD:
                /easy2gallery/ 777
                /easy2gallery/foreign_tours 755

                Is it problem with owner ?

                Problem like this :
                http://modxcms.com/forums/index.php/topic,23177.msg318776.html#msg318776
                About this one, I also have a site that has this kind of restrict permissions.
                All script’s files should be edited by script, but can not be edited by FTP user.
                And all FTP files can be changed by FTP users, but can not be deleted/moved by script.
                It’s not about 777/755 permission, it’s about the ownership group (like Apache or user).

                So how can we deal with it?
                Well, easy2 has the multiple image and zip upload. Use that.
                In this kind of server, do all the folder creation through Module, not via FTP upload.
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                  • 8677
                  • 50 Posts
                  Quote from: goldsky at Dec 13, 2010, 10:12 PM

                  Because you’re using Friendly URL, you need to add base href before any script’s href or CSS’s link rel.
                  <base href="[(site_url)]" />
                  


                  One more thing,
                  Please add <!DOCTYPE ... on top of your template.
                  Otherwise your site will be read as Quirk Mode by browsers.

                  THANK YOU!!!
                  Gallery is working now! =)

                  Quote from: goldsky at Dec 13, 2010, 10:12 PM

                  And please fix the easy2’s CSS path, do not add a slash "/" in front of the assets/...

                  There is no slash in front.
                    • 8677
                    • 50 Posts
                    Quote from: goldsky at Dec 13, 2010, 10:18 PM


                    About this one, I also have a site that has this kind of restrict permissions.
                    All script’s files should be edited by script, but can not be edited by FTP user.
                    And all FTP files can be changed by FTP users, but can not be deleted/moved by script.
                    It’s not about 777/755 permission, it’s about the ownership group (like Apache or user).

                    So how can we deal with it?
                    Well, easy2 has the multiple image and zip upload. Use that.
                    In this kind of server, do all the folder creation through Module, not via FTP upload.


                    I understand, thank you!
                    Will this bag fix? (in the future, in the next version of Easy2Gallery)
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      It’s not easy2’s influence.
                      It’s your server’s settings.
                      Nothing we can do about it.
                      Only your host admin that can change that permissions.
                        Rico
                        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                        MODx is great, but knowing how to use it well makes it perfect!

                        www.virtudraft.com

                        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                        Maintainter/contributor of Babel

                        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.