Local test HotNewsPro2.7 CMS layout prompt error solution

HotNews Topic eighty-six 10.5K Reading mode

Children's shoes often ask why similar errors will be prompted after the CMS layout is enabled when the HotNewsPro2.7 theme is tested locally:

Parse error : syntax error, unexpected $end in H:\wamp\www\wordpress\wp-content\themes\HotNewspro\cms.php on line one hundred and eighty-two The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Solution: Take the WAMP program in the commonly used local php test environment as an example. The default state of WAMP is short_open_tag=Off, which means that PHP<??>is not allowed Abbreviation form, change to On. The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

This is also a necessary setting for building the local environment test website program. The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Specific setting method: click Taskbar WAMP icon, Php php settings - check short_open_tag=on The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

If you use xampp , you can open the php directory and the php.ini of the apache bin directory to find: short_open_tag =off The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Revised as: short_open_tag =on The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Note: The local environment needs to be restarted to take effect The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Related reading: Green xampp tutorial The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments eighty-six    Visitors seventy    Author sixteen
    •  Haoleiren.com
      Haoleiren.com two

      Let me ask you a question. Can I customize the title of the classified column page?

        •  Robin
          Robin

          @ Haoleiren.com Category title, which is not your own name?

            •  Haoleiren.com
              Haoleiren.com two

              @ Robin For example, Design Resources on the navigation will be displayed as design resource_wordpress design when the column change target is opened- Robin

                •  Robin
                  Robin

                  @ Haoleiren.com You are really amazing. Take out my copyright and change the author to yours. Don't you feel flushed?

                    •  Haoleiren.com
                      Haoleiren.com two

                      @ Robin There is a template provided by robin in the footer

                      •  Tmd
                        Tmd five

                        @ Robin In fact, it does not need to modify the code. It can be set directly by the software

                •  Website optimization
                  Website optimization zero

                  It seems that mine is still not good, God! Help me

                  •  Rock Blog
                    Rock Blog one

                    Pay attention!!!

                    •  Eternal Tower Base
                      Eternal Tower Base three

                      Pay close attention to such a powerful blog.

                      •  tamwang
                        tamwang one

                        Why is there no wampphp or wampApache2bin in my wamp?? There is a wampbin directly. Is it in this folder?

                        •  tamwang
                          tamwang one

                          Also, there are two PHP.ini files in the php folder, one is php.ini-development, and the other is php.ini-production. Which do you want to change??

                          •  Trail-1984
                            Trail-1984 four

                            I have been too lazy to be local. When there is no one on the website, online test, hahaha

                            •  Trail-1984
                              Trail-1984 four

                              Brother Bird, I have changed your template to "beyond recognition". The next step is to change the footer. After studying, it seems that you want to change bg.png? I changed it while learning css~

                              However, I will never have the right to change the version. I must put your name on it to show my respect [actually, I'm sorry I didn't pay for it!!!==b]

                              •  Tmd
                                Tmd five

                                I use wamp
                                Run directly. Right click the minimized icon and set Php php - check short_open_tag=on

                                If you want to test the DZ forum, you must open this

                                •  Black land
                                  Black land three

                                  Xampp is the first choice for local testing, which will lead to the problem that the link is not available. There are also relevant articles. I don't know whether the blogger's method is feasible.

                                  •  health preservation
                                    health preservation four

                                    I have used this theme before

                                    •  Shijiazhuang Wedding Photography
                                      Shijiazhuang Wedding Photography four

                                      Come and have a look at Brother Bird

                                      •  Lingtao.com
                                        Lingtao.com two

                                        Come and support...

                                        •  Micro fiction network
                                          Micro fiction network zero

                                          Ask, must the picture match the length and width of the advertising space? Why can't the side advertising bar be displayed? Please give me some advice

                                          •  Fruit Workshop
                                            Fruit Workshop one

                                            I haven't met it yet. I haven't tested CMS locally. I upload the service directly for operation, which saves time.

                                            •  Bob
                                              Bob five

                                              Brother Bird, please help me. After the upgrade, my navigation bar seems to have an exception (but this exception only occurs on the CMS home page, and other pages have no impact). The specific performance is that, except for home navigation, the display effect of other navigation is like the mouse hovering over it. Can you help me check it? Thank you. http://scmbob.org/

                                              •  Bob
                                                Bob five

                                                Halo, temporarily solved, the default navigation must add a connection...

                                                •  hit9
                                                  hit9 three

                                                  Merry Christmas, robin

                                                  •  OHMYGOH
                                                    OHMYGOH one

                                                    I would like to ask
                                                    Why is the classification ID setting on the left side of the CMS home page 1,3,5,6,7,8,9 set
                                                    Is the classification displayed the same?
                                                    I haven't modified any files
                                                    Thank you :)

                                                      •  Robin
                                                        Robin

                                                        @ OHMYGOH At least 5 articles are required in each category

                                                          •  OHMYGOH
                                                            OHMYGOH one

                                                            @ Robin More than 5 articles cannot be displayed:(

                                                              •  Robin
                                                                Robin

                                                                @ OHMYGOH Sweat
                                                                Add more than 10 articles

                                                                  •  OHMYGOH
                                                                    OHMYGOH one

                                                                    @ Robin This problem still exists after repeated tests

                                                                      •  Robin
                                                                        Robin

                                                                        @ OHMYGOH What a villain! Just after helping you, I removed my copyright and changed it into my own. Don't you feel ashamed?

                                                                        •  OHMYGOH
                                                                          OHMYGOH one

                                                                          @ Robin Strictly speaking, it's not your help. It's just a mistake
                                                                          The copyright has been changed back... I'm sorry

                                                                •  wmtimes
                                                                  wmtimes seven

                                                                  What do I use that AP.

                                                                  •  citier
                                                                    citier three

                                                                    This is just useful, Brother Xie

                                                                    •  Guangzhou Private Detective
                                                                      Guangzhou Private Detective one

                                                                      Pay attention!!! Thank you, Brother Bird

                                                                      •  Chiffon dress
                                                                        Chiffon dress two

                                                                        Very right. Go back and use it well

                                                                        •  Mr Sima
                                                                          Mr Sima zero

                                                                          Hello, how do you enable the announcement function of the WordPress theme? It is found that the theme you provide has this function enabled. Can you introduce the method? thank you!

                                                                            •  Robin
                                                                              Robin

                                                                              @ Mr Sima The wp does not have any announcement function. The theme needs to have this function
                                                                              In addition, there is a "Vango Toolbar" similar to my theme announcement that can be searched by yourself

                                                                            •  Zhengzhou Designer
                                                                              Zhengzhou Designer five

                                                                              Can I upgrade the 2.4 theme to wp3.3?

                                                                              •  Zhengzhou Designer
                                                                                Zhengzhou Designer five

                                                                                I need a code urgently now, which can be added to the tab by specifying two or three classified random article codes? How?

                                                                                •  Zhengzhou Designer
                                                                                  Zhengzhou Designer five

                                                                                  I think I still have a question for you at any time. Come on, wait until you have enough time. ha-ha

                                                                                    •  Robin
                                                                                      Robin

                                                                                      @ Zhengzhou Designer Replace with this

                                                                                      <? php $recent = new WP_Query(‘cat=3,4,5&offset=0&orderby=rand&showposts=10’);  while($recent->have_posts()) : $recent->the_post();?>   
                                                                                      <li><a href=“<?php the_permalink();  ?>” Rel="bookmark" title="Read more<? Php the_title_attribute();  ?>”><? php echo cut_str($post->post_title,31);  ?></ a></li>   
                                                                                      <? php endwhile;  ?>   

                                                                                      •  Robin
                                                                                        Robin

                                                                                        @ Zhengzhou Designer Where 'cat=3,4,5 is the classification ID

                                                                                      •  Zhengzhou Designer
                                                                                        Zhengzhou Designer five

                                                                                        Well, I still recognize those small codes. I found that the background was forced to be light gray after upgrading to 3.3. It can't be adjusted back.

                                                                                          •  Robin
                                                                                            Robin

                                                                                            @ Zhengzhou Designer http://zmingcx.com/wordpress-3-3-version-of-the-background-function-failure-solution.html

                                                                                          •  Zhengzhou Designer
                                                                                            Zhengzhou Designer five

                                                                                            I copied another tab code under sidebar2 on the homepage. Why has the appearance style changed? Besides, it can't be withdrawn. Do you want to control css again? What's going on? Hehe, it's depressing...

                                                                                              •  Robin
                                                                                                Robin

                                                                                                @ Zhengzhou Designer I forgot you used 2.4
                                                                                                You cannot copy two TABs. It is too troublesome to modify JS
                                                                                                Or wait for New Year's Day, I have time to get your template

                                                                                              •  Zhengzhou Designer
                                                                                                Zhengzhou Designer five

                                                                                                Well, I always think that the design of the tab is awesome. It doesn't take up space, but also shows a lot of things. Let's go back and get it done later... Have a rest early if you have nothing to do, and don't stay up late like me every day, quack quack quack

                                                                                                •  Zhengzhou Designer
                                                                                                  Zhengzhou Designer five

                                                                                                  In fact, I later found that it is also possible to use the left and right switch templates on your 2.7 version to implement home page image calls. If you look back and see how the implementation is relatively simple and reasonable, I understand it, just give some suggestions.

                                                                                                  •  Lao Yao
                                                                                                    Lao Yao one

                                                                                                    The server has not been used yet. How much can I buy one?

                                                                                                    •  Sanitary diaphragm valve
                                                                                                      Sanitary diaphragm valve four

                                                                                                      Brother Bird is so awesome! When can I have Brother Bird's skills!

                                                                                                      •  all a hideous mess
                                                                                                        all a hideous mess four

                                                                                                        Ask Brother Bird: I only found the copyright in the article on your website. How can I force the copyright information to be added in FEED as well? I tested many online tutorials and added them to functions.php, which made the website unable to open!

                                                                                                        •  knife man
                                                                                                          knife man one

                                                                                                          Come here and give me great support

                                                                                                          •  Guangzhou seo
                                                                                                            Guangzhou seo zero

                                                                                                            Local test, strong blogger!

                                                                                                            •  Maxling
                                                                                                              Maxling four

                                                                                                              Happy New Year, Brother Bird!!!!

                                                                                                              •  zkblog
                                                                                                                zkblog three

                                                                                                                The new beginning of 2012, let's cheer together..

                                                                                                                •  dichaoo
                                                                                                                  dichaoo two

                                                                                                                  happy new year

                                                                                                                  •  dichaoo
                                                                                                                    dichaoo two

                                                                                                                    It has not been updated for a long time

                                                                                                                    •  The best I love
                                                                                                                      The best I love one

                                                                                                                      This topic seems very good,
                                                                                                                      I'm going to use it. Let's learn from your experience

                                                                                                                      •  Studio marketing
                                                                                                                        Studio marketing four

                                                                                                                        Come and see Brother Bird

                                                                                                                        •  fish
                                                                                                                          fish three

                                                                                                                          HH, The answer given to me by the robin teacher is very good. The "Search" column on the side bar must be equipped with a title, so that there will be no more blank space. At the same time, the problem of footer display is solved

                                                                                                                          •  Harbin Zhihua Software Training School
                                                                                                                            Harbin Zhihua Software Training School one

                                                                                                                            It doesn't need to be so troublesome
                                                                                                                            The wamp can be modified directly in the GUI. Click the icon in the lower right corner and click php ->php Settings ->select asp tags
                                                                                                                            Understanding the internal operation as a familiar with php. ini is OK, but it is easy to mislead beginners
                                                                                                                            In addition, short tag format is an early method, which is not recommended by PHP now, so it is recommended not to use short tag format

                                                                                                                            •  Hero
                                                                                                                              Hero two

                                                                                                                              Blogcn cannot use this style???

                                                                                                                              •  Zunshi Industry
                                                                                                                                Zunshi Industry one

                                                                                                                                Hello, I saw the topic you posted today, and I used it. It's really good, but the function of "notify me by email when someone replies" seems to be not working. I installed the WP Mail SMTP plug-in, so I can receive comments when people give me comments, but when I reply to people, they can't receive them. I reply at the front desk, not at the back

                                                                                                                                  •  Robin
                                                                                                                                    Robin

                                                                                                                                    @ Zunshi Industry Most of them are garbage hosts

                                                                                                                                      •  Zunshi Industry
                                                                                                                                        Zunshi Industry one

                                                                                                                                        @ Robin I don't know. I changed the Weisayheibai theme yesterday, and this function was not successful, but it could be successful if I changed the D4 theme in the first paragraph. Later, I changed the comment and replied plug-in

                                                                                                                                    •  Small fish
                                                                                                                                      Small fish one

                                                                                                                                      The owner of the building has modified it according to your method. I use the installed version of wamp, but when I log on to my website on someone else's computer, it still does not display completely, just like the style sheet is not loaded

                                                                                                                                      •  fangcaoba.com
                                                                                                                                        fangcaoba.com five

                                                                                                                                        Brother Bird, there are many problems. Please add my qq1028135490 to help me

                                                                                                                                        •  osa
                                                                                                                                          osa two

                                                                                                                                          Brother Bird, there is a small problem. Why does the website statistics go to the bottom instead of the right side of the website after I installed this main website? The website is generally ugly at the bottom. Is there any way to solve it? thank you.

                                                                                                                                            •  shadow
                                                                                                                                              shadow three

                                                                                                                                              @ osa That's because you have too many tools. Go to small tools and take away the tools you don't need

                                                                                                                                            •  shadow
                                                                                                                                              shadow three

                                                                                                                                              That's because you have too many tools. Go to small tools and take away the tools you don't need

                                                                                                                                              •  zk1212
                                                                                                                                                zk1212 two

                                                                                                                                                Witness Brother Bird's persistence

                                                                                                                                                •  newly arrived
                                                                                                                                                  newly arrived five

                                                                                                                                                  Apache2bin directory not found!

                                                                                                                                                    •  Zhou Xiaolong
                                                                                                                                                      Zhou Xiaolong three

                                                                                                                                                      @ newly arrived The new version of php. ini opens the file in * your installation directory xamppphpphp. ini ctrl+f to search for short_open_tag=off

                                                                                                                                                    •  Old Fortune
                                                                                                                                                      Old Fortune one

                                                                                                                                                      Subtle points show true knowledge! Like one

                                                                                                                                                      •  Fat Girl
                                                                                                                                                        Fat Girl one

                                                                                                                                                        Brother Bird, I use this submission plug-in. Why is it always not set up well? Please help [sumbit_posts]

                                                                                                                                                        •  not a good guy
                                                                                                                                                          not a good guy one

                                                                                                                                                          Brother Bird, after I changed the space, I also prompted this problem. The home page could not be accessed, and I also modified short_open_tag=on, but it was still useful to solve it!

                                                                                                                                                          •  Own people
                                                                                                                                                            Own people one

                                                                                                                                                            Brother Bird, I used xampp v3.0.12. I changed the php.ini file in the php directory, but the php.ini file in the apachebin directory was not found. Is there a problem with the xampp version? Solve!

                                                                                                                                                            •  luke
                                                                                                                                                              luke one

                                                                                                                                                              Thanks for solving this problem

                                                                                                                                                              •  natives
                                                                                                                                                                natives zero

                                                                                                                                                                How much will you spend on this topic? I'm going to build a website.
                                                                                                                                                                Publish some business information.

                                                                                                                                                                  •  I love QQ
                                                                                                                                                                    I love QQ six

                                                                                                                                                                    @ natives Keep the copyright link of the theme for free sharing.

                                                                                                                                                                 anonymous

                                                                                                                                                                Comment

                                                                                                                                                                Anonymous netizens
                                                                                                                                                                 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                                                                                                                                                                Drag the slider to complete validation