Originally Posted by
animateclay
Thanks lat9 for your reply, when I change from ereg to preg, I get this error on the page where the contents of the categories would be:
Error!
Unable to determine the page link!
Then I get a similar issue on my error logs:
#1 preg_replace() called at [/homepages/1/xxxx/htdocs/www.stopmotionstore.com/includes/templates/premium2a/common/tpl_header.php:141]
#2 require(/homepages/1/xxxx/htdocs/www.stopmotionstore.com/includes/templates/premium2a/common/tpl_header.php) called at [/homepages/1/xxxx/htdocs/www.stopmotionstore.com/includes/templates/premium2a/common/tpl_main_page.php:73]
#3 require(/homepages/1/xxxx/htdocs/www.stopmotionstore.com/includes/templates/premium2a/common/tpl_main_page.php) called at [/homepages/1/xxxx/htdocs/www.stopmotionstore.com/index.php:97]
[26-Jul-2017 10:40:30 America/New_York] PHP Warning: preg_replace(): No ending delimiter '.' found in /homepages/1/xxxx/htdocs/www.stopmotionstore.com/includes/templates/premium2a/common/tpl_header.php on line 141
I'm not sure if I did it properly as I'm a coding newb. I simply replaced the terms in the file to see what would happen. What I read in your link seems to be indirect and a few people arguing over what is the best way to alter such a file. Is there a more direct and simple solution? Or is holding onto the old template just going to give me problems as things progress?
ending delimiter in red:
Code:
preg_replace('/\\\/','',$theData)
also look at:
http://www.php.net/manual/en/functio...lace.php#98602
Bookmarks