We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

500.phtml ERROR on all pages including admin dashboard (Not able to access dashboard)[Solved] | Forum

Chathura Mudalige
Chathura Mudalige Dec 12 '13
Hi everyone,

I am trying to find a fix for my website issue. Since the last couple of days the am getting a 500.phtml error on all the pages including admin panel( dashboard) on my site.


I have tried many of the fixes recommended in the forum however I am not able to get rid of that error. All pages are being redirected to that error.


Things I have tried so far

1. Enabling debug mode  to TRUE - I am not able to see any errors or error logs even with this.

2. deleting the plugin files - Still nothing worked

3. Manually updating the plugins - Still No luck


Problem is I am not able to see or do anything on the dashboard. Can someone help.


The domain name is www.99redroses.com


I will keep browsing through the forums in the mean time. Thank you in advance.



The Forum post is edited by ross Jan 5 '14
ross Team
ross Dec 12 '13
Hello Chathura, 


Can you please, PM me your admin and FTP access details? I'll take a look at the issue. 

Chathura Mudalige
Chathura Mudalige Dec 13 '13
Hi Ross. 

We were able to find a fix by changing the return value on strings.php...


Now we are able to access the site.. However some of the string variable are nto returning their values on the site.


Basically.... on the tabs & many other places it is saying versus {$site_name} the real value.

Any Ideas?

Chathura Mudalige
Chathura Mudalige Dec 13 '13
After many failed attempts I found a fix for the above mentioned error.

The problem seemed to originate in the strings.php file.


Location 

Root Folder--> OW_utilities --> strings.php


The error generated around line 130. in the return preg_replace function..


Change string 130 in ow_utilities/string.php from


        return preg_replace('/{\$(\w+)}/ie', "isset(\$vars['\\1']) ? \$vars['\\1'] : '\\0'", $data);


to

        return preg_replace_callback('/{\$(\w+)}/i', 

                function($match) use ($vars) 

                { 

                    return (isset($vars["$match[1]"]) ? $vars["$match[1]"] : $match[0]);

                }, 

                $data);



This seemed to do the trick. No more 505.phtml Error. And no more string values visible for variables throughout the site.



ross Team
ross Dec 15 '13
I'm sorry Chathura for not replying we had a week-end here. So is everything ok now?
Jeevan
Jeevan Dec 22 '13
500.phtml ERROR help



return preg_replace_callback('/{\$(\w+)}/i', 

                function($match) use ($vars) 

                { 

                    return (isset($vars["$match[1]"]) ? $vars["$match[1]"] : $match[0]);

                }, 

                $data)

not worked...

http://www.nammasullia.com



The Forum post is edited by Jeevan Dec 22 '13
Chathura Mudalige
Chathura Mudalige Dec 30 '13
Everything seems to be working fine for now Ross.. Thank you for the followup.

I will let you know if the problem comes back.


Andiga Dompak
Andiga Dompak Jan 11 '14
Same thing happen to me. Server eror 500.
 I'm using bluehost and the guys there help me to solve this.
But after that I can not access my website from mobile. It's showing blank.
Anyone can help?
ross Team
ross Jan 13 '14
Andiga please enable debug mode and copy the errors here, so we could assist you further. 
Andiga Dompak
Andiga Dompak Jan 13 '14

Quote from ross Andiga please enable debug mode and copy the errors here, so we could assist you further. 

hi ross I'm a newbie here. how to enable debug mode?
Quote from ross Andiga please enable debug mode and copy the errors here, so we could assist you further. 

Abu Road Escort
Abu Road Escort Jul 20 '22
Varanasi Escorts | < | > | Agra Escorts | < | > | Allahabad Escorts | < | > | Kanpur Escorts | < | > | Lucknow Escorts | < | > | Mathura Escorts | < | > | Aligarh Escorts | < | > | Ambedkar Nagar Escorts | < | > | Auraiya Escorts | < | > | Azamgarh Escorts | < | > | Baghpat Escorts | < | > | Bahraich Escorts | < | > | Ballia Escorts | < | > | Balrampur Escorts | < | > | Banda Escorts | < | > | Barabanki Escorts | < | > | Bareilly Escorts | < | > | Basti Escorts | < | > | Bijnor Escorts | < | > | Budaun Escorts | < | > | Bulandshahar Escorts | < | > | Chandauli Escorts | < | > | Chitrakoot Escorts | < | > | Deoria Escorts | < | > | Etah Escorts | < | > | Etawah Escorts | < | > | Faizabad Escorts | < | > | Farrukhabad Escorts | < | > | Fatehpur Escorts | < | > | Firozabad Escorts | < | > | Gautam Buddha Nagar Escorts | < | > | Ghaziabad Escorts | < | > | Ghazipur Escorts | < | > | Gonda Escorts | < | > | Gorakhpur Escorts | < | > | Hamirpur Escorts | < | > | Hardoi Escorts | < | > | Jalaun Escorts | < | > | Jaunpur Escorts | < | > | Jhansi Escorts | < | > | Jyotiba Phule Nagar Escorts | < | > | Kannauj Escorts | < | > | Kanshiram Nagar Escorts | < | > | Kaushambi Escorts | < | > | Kheri Escorts | < | > | Kushinagar Escorts | < | > | Lalitpur Escorts | < | > | Mahamaya Nagar Escorts | < | > | Maharajganj Escorts | < | > | Mahoba Escorts | < | > | Mainpuri Escorts | < | > | Mau Escorts | < | > | Meerut Escorts | < | > | Mirzapur Escorts | < | > | Moradabad Escorts | < | > | Muzaffarnagar Escorts | < | > | Pilibhit Escorts | < | > | Pratapgarh Escorts | < | > | Rae Bareli Escorts | < | > | Ramabai Nagar Escorts | < | > | Rampur Escorts | < | > | Saharanpur Escorts | < | > | Sant Kabir Nagar Escorts | < | > | Sant Ravidas Nagar Escorts | < | > | Shahjahanpur Escorts | < | > | Shrawasti Escorts | < | > | Siddharth Nagar Escorts | < | > | Sitapur Escorts | < | > | Sonbhadra Escorts | < | > | Sultanpur Escorts | < | > | Unnao Escorts | < | > |