SylwiaFP
Forum Replies Created
-
Forum: Reviews
In reply to: [Gutenberg] If I could give it zero stars, I would.I write it 26 days later: still ZERO stars for sure.
Ridiculously bad piece of code written by ridiculously weak coders.Please take a look at my fix HERE.
It seems that it works on the home.pl servers too.
It seems I’ve found fix for 2.0.14. It works for the home.pl hosting too.
The following file should be changed:
/wp-content/plugins/nextgen-gallery/products/
photocrati_nextgen/modules/nextgen_data/
class.ngglegacy_gallerystorage_driver.phpIn line 170
'',
you can replace empty string with slash
'/',
You can also place DIRECTORY_SEPARATOR instead of slash:
169 trailingslashit($fs->get_document_root()), 170 DIRECTORY_SEPARATOR, 171 $this->object->get_image_abspath($image, $size)
___
BTW sometimes in admin panel tab Gallery/Other Options the following warning is generated:
Warning: strpos() [function.strpos]: Empty delimiter in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/fs/class.fs.php on line 62
It happens when
$this->get_document_root()
is empty string. The function strpos doesn’t like it.In file class.fs.php from line 62 instead of
if (strpos($path, $this->get_document_root()) === FALSE) { $retval = $this->join_paths( $this->get_document_root(), $path ); }
you can insert something like that:
$r = $this->get_document_root(); if($r !== ''){ if (strpos($path, $r) === FALSE) { $retval = $this->join_paths( $r, $path ); } }