Category Archives: PHP 7

What is My WordPress Site’s Login URL

I just installed WordPress script on my hosting, but I dont know the admin login URL of WordPress

Typically, you can access login page via the following URLs

  • http://www.example.com/login/
  • http://www.example.com/admin/

However if permalink  or seo friendly URL is not working, you can access login page via the following URL

  • http://www.example.com/wp-login.php
If  your WordPress was installed in a sub-folder such as /wp/

You can access login URL  via the following URLs

  • http://www.example.com/wp/login/
  • http://www.example.com/wp/wp-login.php
If your WordPress was installed on a sub-domain

You can access login URL via the following URLs

  • http://sub-domain.example.com/login/
  • http://sub-domain.example.com/wp-login.php

PHP Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context

After upgrade PHP to 7.2, I got error message like PHP Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context. How can I solve this issue?

For the early PHP version, PHP will not throw an error message, if you are using “continue” outside a “for, foreach or switch”. For PHP 7.0 or later version, “continue” is not longer permitted outside a “for, foreach or switch” and gives a fatal error. 

Magento Fatal Error Function Name Must Be A String With PHP 7

I have installed my magneto 1.x on PHP 7.x version, however I have got error like Fatal error: Uncaught Error: Function name must be a string …app\code\core\Mage\Core\Model\Layout.php. How can I solve this issue

You can modify the following file directly or you can create same file under the local folder

1. find the following file

app\code\core\Mage\Core\Model\Layout.php

2. find the following line from above file

3. then replace with following