How to customize the login page of vBulletin 4 - vbulletin

I am using vBulletin version 4.1.4. I want to re-design the login page (it is separated with current vBulletin skin), I have tried using these instructions http://www.vbgeeko.com/archives/217 but it shows an error:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]\includes\functions.php on line 4114
( ! ) Parse error: syntax error, unexpected T_STRING in D:\wamp\www\vBulletin Forum v4.1.4\upload\clogin.php(42) : eval()'d code on line 1
Call Stack
# Time Memory Function Location
1 0.0007 374496 {main}( ) ..\clogin.php:0
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: clogin in [path]\includes\functions.php on line 4114
So how can I make a custom login page of vBulletin 4?

Related

Flash Messages TYPO3 6 to 7 update

I used the following syntax in an TYPO3 6 exbase extension before migrating to 7:
$this->flashMessageContainer->flush();
$this->flashMessageContainer->getAllMessagesAndFlush();
$this->flashMessageContainer->add(Tx_Extbase_Utility_Localization::translate('undefined error', $this->extensionName));
In my new code I would use:
$this->addFlashMessage(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('undefined error', $this->extensionName));
But I always get this error:
Fatal error: Call to a member function getFlashMessageQueue() on a
non-object in /srv/www/typo3_src-7.6.32/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php on line 190
Any ideas about this behaviour?
Thanks and best regards,
Chris
(Disclaimer: TYPO3 v7.6 reached end-of-life and is not maintained anymore)
In order to understand what's going on, let's have a look into the source code (referring to the error message you posted, checking AbstractController.php)
$this->controllerContext->getFlashMessageQueue()->enqueue($flashMessage);
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php#L190
$this->controllerContext = $this->buildControllerContext();
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php#L238
Thus, my assumption(!) is, that you override public function processRequest(...) in your application specific controller without invoking parent::processRequest(...) leading to the situation that $this->controllerContext is not initialized.

Magento 2.3.3 Sales / Orders / View is missing vital information

When upgrading to Magento 2.3.3 from 2.3.2, the Sales / Orders / View, does no longer show:
Order & account Information
Adress Information,
It looks like it has something to do with a module called Medma\Disableregistration\, it was not compatible with 2.3.3, so I uninstalled it, but for some reason it still shows up.
Now when trying to look at Sales / Order / View, it get this info:
1 exception(s):
Exception #0 (ReflectionException): Class Medma\Disableregistration\Model\Config\Source\Options does not exist
Exception #0 (ReflectionException): Class Medma\Disableregistration\Model\Config\Source\Options does not exist
#1 Magento\Framework\Code\Reader\ClassReader->getConstructor('Medma\Disablereg...') called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:49]
2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Medma\Disablereg...') called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:48]
3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Medma\Disablereg...', array()) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
4 Magento\Framework\ObjectManager\ObjectManager->create('Medma\Disablereg...', array()) called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
5 Magento\Framework\Validator\UniversalFactory->create('Medma\Disablereg...') called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [vendor/magento/module-customer/Model/AttributeMetadataConverter.php:68]
7
But the Medma\Disableregistration does not show up anywhere, when I search for it, not in app/code, and it is also removed from the Database as far as I have been able to see.

Call to a member function get_cart_subtotal() on a non-object in config-woocommerce/config.php on line 790

I'm trying to login into my WordPress Admin panel, and am getting the following error:
Call to a member function get_cart_subtotal() on a non-object in /home/spicom/public_html/adwinang.com/wp-content/themes/enfold/config-woocommerce/config.php on line 790
This is my code at line 790:
$cart_subtotal = $woocommerce->cart->get_cart_subtotal();
It sounds like you haven't called global $woocommerce;, before trying to access the $woocommerce object.
A better way would be to use WC():
$cart_subtotal = WC()->cart->get_cart_subtotal();
Alternatively, it's possible the WooCommerce hasn't even been installed and activated...make sure to do that, if it's a theme dependency.
I had a very similar message.
[25-Sep-2018 10:24:08 UTC] PHP Fatal error: Uncaught Error:
Call to a member function get_cart_subtotal() on null in
themes\storefront\inc\woocommerce\storefront-woocommerce-template-functions.php:80
It was due to me having the following in my wp-config.php file.
define( 'DOING_CRON', false );
I'd added this line while attempting to run something from the command line with W3 Total Cache activated. I didn't realise that it would completely ruin WooCommerce and didn't notice the side effect until attempting to view the site in my browser.

Undefined index: HTTP_X_URL_BEFORE_REWRITE

I have the application which was written in Zend Framework. When I try to open the index file it give me an error:
PHP Notice: Undefined index: HTTP_X_URL_BEFORE_REWRITE in
C:\Inetpub\wwwroot\test\library\Zend\Controller\Request\Http.php on
line 326 PHP Notice: Undefined index: HTTP_X_URL_BEFORE_REWRITE in
C:\Inetpub\wwwroot\test\library\Zend\Controller\Request\Http.php on
line 326
it`s depends of this line in index.php
echo $ctrl->dispatch();
because when I coment it, application give me white site.
$ctrl is:
$ctrl = Zend_Controller_Front::getInstance();
$ctrl->setBaseUrl('/test');
$ctrl->throwExceptions(true);
$ctrl->registerPlugin(new DPCPluginAuth($auth, $acl));
$ctrl->setControllerDirectory($config->controllers->toArray());
echo $ctrl->dispatch();
and the function of liblary Zend is localized on Zend/Controller/Request/Http.php and name public function setRequestUri
Please help me ... I don't know what's incorrect in that code and what means that message.
My mod_rewrite module is ISAPI_Rewrite3_Lite

Trouble with upload component - Cakephp 2.0

I was trying to incorporate file upload to my project but whenever I access the a function in the controller it gives me these warnings:
Warning (2): call_user_func_array(): First argument is expected to be a valid callback, 'UploadComponent::initialize' was given [CORE/Cake/Utility/ObjectCollection.php, line 110]
Warning (2): call_user_func_array() [http://php.net/function.call-user-func-array]: First argument is expected to be a valid callback, 'UploadComponent::beforeRender' was given [CORE/Cake/Utility/ObjectCollection.php, line 110]
Warning (2): call_user_func_array() [http://php.net/function.call-user-func-array]: First argument is expected to be a valid callback, 'UploadComponent::shutdown' was given [CORE/Cake/Utility/ObjectCollection.php, line 110]
The upload component that I added works fine for my cake 1.3 version.
please help
Solved it, by modifying the Component.
In cake php 2.0 all components must extend Component; failing to do this will trigger an exception.
For example:
class UploadComponent extends Component {
}