Page 5 of 6

Re: [3.2][RC] PhpBB Directory

Posted: Sat Apr 28, 2018 2:16 pm
by donsenilo
ErnadoO wrote:
Wed Apr 25, 2018 2:33 pm
Hi,

What type cache are you using ($acm_type in config.php) ?
Hi ErnadoO

Sorry ... it was my fault (I was to quick). It works perfectly !

Re: [3.2][RC] PhpBB Directory

Posted: Sat Apr 28, 2018 2:23 pm
by ErnadoO
phew :D

Re: [3.2][RC] PhpBB Directory

Posted: Thu Jul 19, 2018 4:01 pm
by epiksel
ErnadoO wrote:
Fri Jun 16, 2017 11:13 am
Hello

https://github.com/ErnadoO/ext-phpbb-di ... r.json#L23

This extension requires phpbb 3.2.1-dev minimum, so you need to use phpBB from github repository
Hi ErnadoO,

phpBB v3.2.2
php 7.1
allow_url_fopen ON
phpbbdirectory v2.0.1-RC1

When I enable extension we get this error.

Code: Select all

PHP Fatal error:  Uncaught Symfony\Component\Config\Exception\FileLoaderLoadException: Cannot load resource "ernadoo_phpbbdirectory_route_controller". in /home/xxxxxxxxxxx/public_html/vendor/symfony/config/Loader/Loader.php:73
Stack trace:
#0 /home/xxxxxxxxxxx/public_html/vendor/symfony/config/Loader/FileLoader.php(72): Symfony\Component\Config\Loader\Loader->resolve('ernadoo_phpbbdi...', 'ernadoo_phpbbdi...')
#1 /home/xxxxxxxxxxx/public_html/vendor/symfony/routing/Loader/YamlFileLoader.php(174): Symfony\Component\Config\Loader\FileLoader->import('ernadoo_phpbbdi...', 'ernadoo_phpbbdi...', false, 'ext/ernadoo/php...')
#2 /home/xxxxxxxxxxx/public_html/vendor/symfony/routing/Loader/YamlFileLoader.php(94): Symfony\Component\Routing\Loader\YamlFileLoader->parseImport(Object(Symfony\Component\Routing\RouteCollection), Array, '/home/xxxxxxxx...', 'ext/ernadoo/php...')
#3 /home/xxxxxxxxxxx/public_html/vendor/symfony/config/Loader/DelegatingLoader.php(40): Symfony\Component\Routing\Loader\YamlFileLoader->load('ext/ernadoo/php... in /home/xxxxxxxxxxx/public_html/vendor/symfony/config/Loader/Loader.php on line 73

Re: [3.2][RC] PhpBB Directory

Posted: Fri Jul 20, 2018 12:16 pm
by ErnadoO
Hello

I can't reproduce, even with your config :/

But, you can try this:

in config/routing.yml, replace:

Code: Select all

ernadoo_phpbbdirectory_dynamic_controller:
    resource: ernadoo_phpbbdirectory_route_controller
    type: ernadoo_phpbbdirectory_route
with:

Code: Select all

ernadoo_phpbbdirectory_dynamic_controller:
    resource: .
    type: ernadoo_phpbbdirectory_route
An clean your cache before retry

Re: [3.2][RC] PhpBB Directory

Posted: Fri Jul 20, 2018 2:20 pm
by epiksel
ErnadoO wrote:
Fri Jul 20, 2018 12:16 pm
Hello

I can't reproduce, even with your config :/

But, you can try this:

in config/routing.yml, replace:

Code: Select all

ernadoo_phpbbdirectory_dynamic_controller:
    resource: ernadoo_phpbbdirectory_route_controller
    type: ernadoo_phpbbdirectory_route
with:

Code: Select all

ernadoo_phpbbdirectory_dynamic_controller:
    resource: .
    type: ernadoo_phpbbdirectory_route
An clean your cache before retry
I have made changes and tried but the error continues.

Code: Select all

ernadoo_phpbbdirectory_dynamic_controller:
    resource: ernadoo_phpbbdirectory_route_controller
    type: ernadoo_phpbbdirectory_route
I completely removed these lines and tried. Installed without error. I again added the code lines I removed after installation. Will this cause other problems?

Re: [3.2][RC] PhpBB Directory

Posted: Fri Jul 20, 2018 2:51 pm
by ErnadoO
epiksel wrote:
Fri Jul 20, 2018 2:20 pm
I completely removed these lines and tried. Installed without error. I again added the code lines I removed after installation. Will this cause other problems?
mhh, i don't know. Try to clear the cache and create a new directory category with a route (a custom url) and go to the directory.

Re: [3.2][RC] PhpBB Directory

Posted: Fri Jul 20, 2018 3:49 pm
by epiksel
ErnadoO wrote:
Fri Jul 20, 2018 2:51 pm
mhh, i don't know. Try to clear the cache and create a new directory category with a route (a custom url) and go to the directory.
No problem for now. Thanks.

Re: [3.2][RC] PhpBB Directory

Posted: Wed Aug 22, 2018 3:45 pm
by ErnadoO
New release !

See first post for Download Link

As usual, disable, replace files and enable extension ;)

Re: [3.2][RC] PhpBB Directory

Posted: Sun Aug 26, 2018 9:06 am
by noth
both the new release specified by Ernadoo above and the original 3.1 version work on 3.2.2

both are extremely good , great work Ernadoo (yes I did have a beer! :mrgreen: )

Re: [3.2][RC] PhpBB Directory

Posted: Sun Aug 26, 2018 9:14 am
by ErnadoO
Thx but 3.1 version doesn't work with phpbb 3.2 (phpbb notification system is different)

Re: [3.2][RC] PhpBB Directory

Posted: Sun Aug 26, 2018 9:35 am
by noth
one thought for admins running https

the system in the ext calls an image e.g insecure image 'http://www.apercite.fr/apercite/120x90/oui/oui

this causes the Forum to lose the Secure status because of the apercite.fr not being https?

minor point but would be great to solve :)

Re: [3.2][RC] PhpBB Directory

Posted: Sun Aug 26, 2018 9:52 am
by ErnadoO

Re: [3.2][RC] PhpBB Directory

Posted: Sun Aug 26, 2018 10:18 am
by noth
hoohoo !! thank you :D and a correction

the new release specified by Ernadoo above works fine on 3.2.2

the original 3.1 version appears to work fine on 3.2.2 but note the Notifications are different ;)

Re: [3.2][RC] PhpBB Directory

Posted: Sun Sep 09, 2018 1:51 pm
by donsenilo
I'm soooooooo stupid !!! :shock:

I've downloaded your ext from github and now I can't activate it anymore ...
"The selected extension can not be activated. Please check the prerequisites that are necessary for the extension."

I use 3.2.2, PHP7.1 and allow_url_fopen is ON

Re: [3.2][RC] PhpBB Directory

Posted: Sun Sep 09, 2018 5:33 pm
by franki63
I have the same problem. For me the problem lies with the composer.json

Code: Select all

"E1379/speaking-url": "dev-master"
ernadoo\phpbbdirectory\migrations\v20x\add_cat_route_field.php

Code: Select all

public function rewrite_cat_name()
	{
		$slug = new \E1379\SpeakingUrl\SpeakingUrl();

		$sql = 'SELECT cat_id, cat_name FROM ' . $this->table_prefix . 'directory_cats';
		$result = $this->db->sql_query($sql);

		while ($row = $this->db->sql_fetchrow($result))
		{
			$sql = 'UPDATE ' . $this->table_prefix . 'directory_cats' . '
				SET cat_route = "' . (string) $slug->getSlug($row['cat_name'], array('lang' => $this->config['default_lang'], 'symbols' => true)). '"
				WHERE cat_id = ' . (int) $row['cat_id'];
			$this->db->sql_query($sql);
		}
	}
Sorry for my english :oops: