Jump to content
thirty bees forum
  • 0

Question

Posted (edited)

Hello,

This module : advanced top menu by presta module, used to work with ThirtyBees long time ago, but now it shows errors on front office only, back office is still usable.

Here is the main error shown from TB vers 1.3.0 to 1.6.0

Unknown resource type 'module'

in file vendor/smarty/smarty/libs/sysplugins/smarty_resource.php at line 110

Source file: vendor/smarty/smarty/libs/sysplugins/smarty_resource.php

91:                        "smarty_resource_{$type}_source", "smarty_resource_{$type}_timestamp",
92:                        "smarty_resource_{$type}_secure", "smarty_resource_{$type}_trusted"
93:                    )
94:                );
95:                // give it another try, now that the resource is registered properly
96:                return self::load($smarty, $type);
97:            }
98:        }
99:        // try streams
100:        $_known_stream = stream_get_wrappers();
101:        if (in_array($type, $_known_stream)) {
102:            // is known stream
103:            if (is_object($smarty->security_policy)) {
104:                $smarty->security_policy->isTrustedStream($type);
105:            }
106:            return $smarty->_cache[ 'resource_handlers' ][ $type ] = new Smarty_Internal_Resource_Stream();
107:        }
108:        // TODO: try default_(template|config)_handler
109:        // give up
110:        throw new SmartyException("Unknown resource type '{$type}'");
111:    }
112:
113:    /**
114:     * extract resource_type and resource_name from template_resource and config_resource
115:     *
116:     * @note "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including).
117:     *
118:     * @param string $resource_name    template_resource or config_resource to parse
119:     * @param string $default_resource the default resource_type defined in $smarty
120:     *

I tried to fixed this, but I couldn't after quite some time spent on it..

Is there any anybod that got a way or advise to fix that please ?

I for now just want to make it working in front office with PHP 7.4.X only.. v8.x will be handle later.

Best Regards,

Zen

Edited by zen

1 answer to this question

Recommended Posts

  • 0
Posted
5 hours ago, zen said:

Hello,

This module : advanced top menu by presta module, used to work with ThirtyBees long time ago, but now I shows error on front office only, back office is still usable.

Here is the error shown from TB vers 1.3.0 to 1.6.0

Unknown resource type 'module'

in file vendor/smarty/smarty/libs/sysplugins/smarty_resource.php at line 110

Source file: vendor/smarty/smarty/libs/sysplugins/smarty_resource.php

91:                        "smarty_resource_{$type}_source", "smarty_resource_{$type}_timestamp",
92:                        "smarty_resource_{$type}_secure", "smarty_resource_{$type}_trusted"
93:                    )
94:                );
95:                // give it another try, now that the resource is registered properly
96:                return self::load($smarty, $type);
97:            }
98:        }
99:        // try streams
100:        $_known_stream = stream_get_wrappers();
101:        if (in_array($type, $_known_stream)) {
102:            // is known stream
103:            if (is_object($smarty->security_policy)) {
104:                $smarty->security_policy->isTrustedStream($type);
105:            }
106:            return $smarty->_cache[ 'resource_handlers' ][ $type ] = new Smarty_Internal_Resource_Stream();
107:        }
108:        // TODO: try default_(template|config)_handler
109:        // give up
110:        throw new SmartyException("Unknown resource type '{$type}'");
111:    }
112:
113:    /**
114:     * extract resource_type and resource_name from template_resource and config_resource
115:     *
116:     * @note "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including).
117:     *
118:     * @param string $resource_name    template_resource or config_resource to parse
119:     * @param string $default_resource the default resource_type defined in $smarty
120:     *

I tried to fixed this, but I couldn't after quite some time spent on it..

Is there any anybod that got a way or advise to fix that please ?

I for now just want to make it working in front office with PHP 7.4.X only.. v8.x will be handle later.

Best Regards,

Nicolas

@datakick

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...