Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N Special Pages extras
I'm using this plugin for many pages in many many configurations and never had problems. Works with no problems with i18n special pages 1.3.5 and GS 3.3.12 or newer
http://flexphperia.net - my portfolio
Reply
(2017-10-11, 18:21:12)rio2000 Wrote: Hello.
I can't create more than 80 fields. What could be the problem?

Never had this problem. What you see? What's happening?
http://flexphperia.net - my portfolio
Reply
(2017-10-20, 22:56:38)mganko Wrote:
(2017-10-11, 18:21:12)rio2000 Wrote: Hello.
I can't create more than 80 fields. What could be the problem?

Never had this problem. What you see? What's happening?

no errors, the plugin does not give. Just the new fields are not saved.
Reply
(2017-10-20, 23:07:35)rio2000 Wrote:
(2017-10-20, 22:56:38)mganko Wrote:
(2017-10-11, 18:21:12)rio2000 Wrote: Hello.
I can't create more than 80 fields. What could be the problem?

Never had this problem. What you see? What's happening?

no errors, the plugin does not give. Just the new fields are not saved.
Please check on new clean install of GS with I18N special pages 1.3.5
http://flexphperia.net - my portfolio
Reply
Hello! There is a problem with SSL. If I add HTTPS in the settings, then the thumbnails disappear. And I can not add new pictures.

I think the problem is somewhere in the validator.php. Smile


Attached Files Thumbnail(s)
           
Reply
(2018-04-25, 19:21:00)ChronosMe1 Wrote: Hello! There is a problem with SSL. If I add HTTPS in the settings, then the thumbnails disappear. And I can not add new pictures.

I think the problem is somewhere in the validator.php. Smile

Enable debuging mode in GS  define('GSDEBUG',  true);
Try to open thumbnail url in browser, and see what is happening.
http://flexphperia.net - my portfolio
Reply
(2018-04-25, 23:29:18)mganko Wrote:
(2018-04-25, 19:21:00)ChronosMe1 Wrote: Hello! There is a problem with SSL. If I add HTTPS in the settings, then the thumbnails disappear. And I can not add new pictures.

I think the problem is somewhere in the validator.php. Smile

Enable debuging mode in GS  define('GSDEBUG',  true);
Try to open thumbnail url in browser, and see what is happening.

If I enable debugging mode, this only works on the site, not on the admin area.
Pictures open normally. They are not visible only inside the editing page.

Here is an example: if I output direct links in the listing of pages (see attachments), pictures are available. If I open edit page, there are no pictures.

If I change https to http in settings/website URL, everything is fine.

If I open thumbnail url: https://vashdom-kazan.ru/plugins/Special...2Fwrk9.jpg 
he says "Wrong path"

UPDATE: Almost found the reason. The problem is in the validator.php file in function findImagePath ($url).


Attached Files Thumbnail(s)
       
Reply
I've got the same error here.

[Image: thumbnail_error.gif]

Michał, do you have an idea how to fix this?

Thank you in advance for your answer.
Reply
(2016-08-03, 04:04:03)orrollo Wrote: also, was fixed the code. changed SPEValidator.php:

Code:
   public static function findImagePath($url){
       global $GSADMIN;
   
       $dataDirPart = str_replace(GSROOTPATH, '', GSDATAPATH); // "data/"
       $pluginsDirPart = str_replace(GSROOTPATH, '', GSPLUGINPATH); // "plugins/"
       $pluginsDirPart = str_replace(GSROOTPATH, '', GSPLUGINPATH); // "plugins/"

       $port = ($p = $_SERVER['SERVER_PORT'])!='80' && $p !='443' ? ':'.$p : '';
       $host = $_SERVER['SERVER_NAME'] . $port;
       $pathParts = pathinfo($_SERVER['PHP_SELF']);

       if ($pathParts['filename'] == 'changedata') //while saving page or while validating by ajax
           $subDir = substr($pathParts['dirname'], 0, strrpos($pathParts['dirname'], $GSADMIN)); //find page subdir
       else
           $subDir = substr($pathParts['dirname'], 0, strpos($pathParts['dirname'], $pluginsDirPart.'SpecialPagesExtras')); //find page subdir
       
       $siteHost = http_protocol()."://". $host;
       
       //delete site host and subdir and data from image url
       if ( substr($url, 0, strlen($siteHost.$subDir.$dataDirPart) ) == $siteHost.$subDir.$dataDirPart) {
           $path = substr($url, strlen($siteHost.$subDir.$dataDirPart));
       }
       else if (substr($url, 0, strlen($subDir.$dataDirPart) ) == $subDir.$dataDirPart){ //if its root relative (ex. /data/uploads/image.jpg)
           $path = substr($url, strlen($subDir.$dataDirPart));
       }
       else{ //wrong path, not full and root relative
           return false;
       }
           
       $file = basename($path);
       $subDir = tsl(dirname($path));
       
       return array('dir' => $subDir, 'filename' => $file, 'full' => GSDATAPATH.$path);
   }

orrollo, this fixed the problem - thank you for that solution. :-)
Reply




Users browsing this thread: 1 Guest(s)