Newbie - problem loading just a couple pages from menu

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Newbie - problem loading just a couple pages from menu

Postby Rudy » Fri Apr 04, 2014 10:55 pm

Hello

I moved a PivotX site recently, the links were setup incorrectly for some reason, i had to change them all manually for the menus, links, etc.
I thought I was all done and it was working great - but some pages don't work and provide a nasty error which I have included below. The bad links are coming off the menu - the about us page is one of the bad links.
_____________________________________________________________
* File is not readable! *

PivotX build: PivotX - 2.3.6
Time taken: 0.315 seconds
Memory taken: 7.5 mb
PHP version: 5.3.13
DB type: flat

-- Backtrace --

» cms/index.php:24 - require_once( '/hermes/bosoraweb080/b1200/ipg.patquigley/cms/pivo~' )
» pivotx/render.php:269 - Parser->output()
» modules/module_parser.php:1355 - Extensions->executeHook( 'after_parse' , '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans~' )
» modules/module_extensions.php:601 - Extensions->executeAfterParse( '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans~' )
» modules/module_extensions.php:786 - seoCallback( '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans~' )
» seo/hook_seo.php:170 - Pages->getPage( null )
» pivotx/objects.php:2664 - PagesFlat->getPage( null )
» modules/pages_flat.php:331 - loadSerialize( '/hermes/bosoraweb080/b1200/ipg.patquigley/cms/pivo~' )
» pivotx/lib.php:4297 - renderErrorpage( 'File is not readable!' , '<p>The following file could not be read:</p><pre>.~' )
» pivotx/lib.php:444 - debug_printbacktrace( TRUE )


_____________________________________________________

The previous web developer had all the links coded to be in the wrong root directory ( www.patquigley.ca/cms/index.php ) - not sure what he was doing there but when I moved the site, links no longer worked. I believe there was a redirect from the root orginally. It made no sense. I removed the long urls to simply point to the file in the root starting with the PHP "?". ( <a href="?p=imago-weekends"> instead of <a href="http://www.patquigley.ca/cms/?p=imago-weekends"> - which seems to work for almost all the pages. The site is patguigley.ca

Any help would be sure appreciated. This is an awesome forum btw. Lots of pros out there to lend a hand.

Cheers
Rudy
Rudy
 
Posts: 10
Joined: Wed Feb 05, 2014 6:09 pm

Re: Newbie - problem loading just a couple pages from menu

Postby Harm10 » Sat Apr 05, 2014 8:13 am

First of all welcome to this forum!

You shouldn't have to code your links within the PivotX CMS yourself. Let PivotX do it for you. Use the [[ link ]] tag for example.
http://book.pivotx.net/index.php?page=app-b#anchor-link and use the modifiers (like $modifier.uri or $modifier.uid) to get the right link.
PivotX will find out what link you want also using the setting for mod_rewrite (config screen).

What could also help is rebuilding the indexes (option for flat file in config).

Normally the About us link is a predefined structure within the theme pointing to a page called like that. So if that page doesn't exist the link won't work.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Newbie - problem loading just a couple pages from menu

Postby Rudy » Sat Apr 05, 2014 9:32 pm

Hi, thanks for replying.
I guess I am looking for a slightly quicker fix for this one if there is that option. I have already re-coded all the links on this site.
I am not getting paid for this endeavor - so hoping to wrap it up pretty quick.
I would probably have to learn the entire architecture I think to understand what you are talking about regarding links.
So far, I have replaced all the bad links which previous was an entire URL string including the http://
A previous PivotX guru had figured out the problem with the hard coded links - also was baffled why they were there in the first place.
Someone hand coded them actually many months ago before my time, as the site was hacked and infected with a nasty trojan. In the course of repairing the site, the guy added the hard coded links, to the CMS folder, but then had re-directs pointing PivotX in the right directions. Very confusing for me coming in and not having a clue about PivotX. I am doing this for my girlfriends mom for brownie points basically :) LOL My bad.
Any ideas for a quick fix? Maybe the about us page resides somewhere else? I am stumped. Perhaps if I knew PHP better, I could figure it.
Kind thanks
Rudy
Rudy
 
Posts: 10
Joined: Wed Feb 05, 2014 6:09 pm

Re: Newbie - problem loading just a couple pages from menu

Postby Rudy » Sat Apr 05, 2014 9:53 pm

this is the header from the error message if it helps:

PivotX: Oops! Something went wrong!

You requested a page, but PivotX encountered a fatal error.

File is not readable!

The following file could not be read:

..//hermes/bosoraweb080/b1200/ipg.patquigley/cms/pivotx/db/pages/page_.php

Try logging in with your ftp-client and make the file readable. Else try to go back to the last page.

Did you break something? Try logging into PivotX, and see if you'll get more details in the Admin Interface.
Try enabling Debug, and Check the Debug Output for clues what is wrong.
If you can't figure it out, drop by the PivotX Forums. We'll help you! :-)

If you post a message on the forum, please include the following information:
Rudy
 
Posts: 10
Joined: Wed Feb 05, 2014 6:09 pm

Re: Newbie - problem loading just a couple pages from menu

Postby Harm10 » Sat Apr 05, 2014 11:12 pm

I am afraid there will be no quick fix. Someone has to have a look at the entire structure.

Please read http://book.pivotx.net/page/1-2 especially the part about file rights. You have to chmod the right folders to 777.
After that use the rebuild options so the correct indexes are created.

Also install extension PivotX Tools http://extensions.pivotx.net/entry/28/pivotx-tools so you can check the integrity and do other handy things.

I guess you can get help repairing the site but not for free alas. If you want me to have a look you can PM me with some login credentials (also FTP).
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Newbie - problem loading just a couple pages from menu

Postby Rudy » Tue Apr 08, 2014 10:06 pm

Harm10 wrote:P).


The permissions are fine, there were a few 755 set instead of 777 but it made no difference.
I believe the pages that are not working: "about" and "resources" are both corrupted.
For example, here is the resources page from /db/pages/page_14.php :
_________________________________________________________________________

<?php /* pivot */ die(); ?>a:23:{s:4:"user";s:5:"admin";s:9:"sortorder";i:10;s:4:"link";s:8:"/cms/?p=";s:8:"link_end";s:0:"";s:4:"code";i:14;s:4:"date";s:16:"2012-11-26-14-50";s:3:"uri";s:9:"resources";s:7:"chapter";i:0;s:12:"publish_date";s:16:"2012-11-26-14-50";s:5:"title";s:22:"Oprah's Top 20 Moments";s:8:"subtitle";s:0:"";s:8:"template";s:1:"-";s:12:"introduction";s:6597:"<p>[[image file="2012-11/opera-imago.jpg" align="right" ]]The Imago Theory (1988) My big lightbulb moment on relationships came the first time I talked with marriage therapist Harville Hendrix. He introduced me to his Imago Theory&mdash;in essence, he says it's not a coincidence that you've attracted your partner; that person is there to help you do the work of recovering from old wounds. That show changed me. I saw relationships not solely as the kind of romantic pursuit our society celebrates but as a spiritual partnership that's meant to change how you see yourself and the world.</p>
<h3>Alanis Morissette Talks about Imago Couples Therapy</h3>
<p><iframe src="http://www.youtube.com/embed/StszQDz1JHQ?rel=0" width="480" height="360" frameborder="0"></iframe></p>
<h3>Marriage and Communication</h3>
<object width="480" height="360" bgcolor="#FFFFFF" data="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" type="application/x-shockwave-flash"><param name="flashVars" value="videoId=969645785001&amp;playerID=67524056001&amp;playerKey=AQ~~,AAAAAjHM3KE~,ue6IyhgccnQfCR9niUq7SpiGuvtClfZX&amp;domain=embed&amp;dynamicStreaming=true" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" /><param name="flashvars" value="videoId=969645785001&amp;playerID=67524056001&amp;playerKey=AQ~~,AAAAAjHM3KE~,ue6IyhgccnQfCR9niUq7SpiGuvtClfZX&amp;domain=embed&amp;dynamicStreaming=true" /><param name="allowfullscreen" value="true" /><param name="swliveconnect" value="true" /><param name="allowscriptaccess" value="always" /><param name="pluginspage" value="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" /></object>
<p><span class="smarterwiki-popup-bubble smarterwiki-popup-bubble-active smarterwiki-popup-bubble-flipped" style="top: 562px; left: 175px; margin-left: -54px; opacity: 1;"><span class="smarterwiki-popup-bubble-tip"></span><span class="smarterwiki-popup-bubble-body"><span class="smarterwiki-popup-bubble-links-container"><span class="smarterwiki-popup-bubble-links"><span class="smarterwiki-popup-bubble-links-row"><a href="http://duckduckgo.com/?q=Marriage%20and%20Communication" target="_blank" title="Search DuckDuckGo" class="smarterwiki-popup-bubble-link"><img class="smarterwiki-popup-bubble-link-favicon" src="https://ff.duckduckgo.com/favicon.ico" alt="" /></a><a href="http://www.google.com/search?hl=com&amp;btnI=I'm+Feeling+Lucky&amp;q=Marriage%20and%20Communication+wikipedia" target="_blank" title="Search Wikipedia" class="smarterwiki-popup-bubble-link"><img class="smarterwiki-popup-bubble-link-favicon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAIpwAACKcBMsYCAwAAAAd0SU1FB9kFEwgQLXKnj9oAAAPsSURBVDiNdVRZSGRXEH1Joz8icSIMJsEQEvKvov4ICoOYIAp+KKISkLiAgij5UGOMjgoug6CiKC64i/sSpVHcl7jv7W6722pcWmyNoqBW6hRpyYSZC8W7975bdU+dOrcUIlL+axYWFq+SkpLybWxsYo17VlZWX/H6DebOzs4/ent7/+Lu7v7z/31h7y8U5fvV1VWNra3tIObGvZqamtaHh4fHxMTExb29vcejoyMKCwt7jIqKWuD/bz4Y0MXF5e319bU2JyfngA99x/YJ22empqZuERERKwcHB9Td3U37+/u0srJCc3NzNDIyQk1NTVcqleonPvv6JSCPL87OznQ8p+TkZC2vv2GzcnNz+83a2joqLy9vCQFnZ2dpfX2dlpaWqLe3lzo7O+WStLS0ORMTE7+XgCkpKTX07/Dz86PIyEhDVlaWISMjgxISEmRfp9PRzs4O7e7uEtMi6EZHRyVweHg4gp6bm5tbKK958PlbODES+ZmZmQmkxjsE2d3dHWm1WsrOzqa6ujoaGhqigYEBGh4epvT0dCovLyd7e3sfhR3fGR0vLy9fULa0tMj8/PycNBoNcVGIi0NxcXHU09NDY2Nj1N/fL2mXlZXJJV5eXkXK9va2DojggIDPz8/iuLGxQcvLy8IXEN7c3JBer5f14uKiIOzr66P29naqqqqiiooK8vf3n1aYbP3ExIQcZkkIKgcHBwJ/BoNB1ltbW8IbF466urrk3OTkpFhDQ4MEZA7Jx8fnSGEJ6I2pHh4eyvf2ViglVBbBwBMQb25u0sLCgnAXExMjVLS1tVFJSYmkHRoa+pfCmydwPjk5EYf7+3txwBoVRTFmZmZetFdcXEyBgYGUm5srVa6traWioiIqKCig4ODgVYVJnUE6LGpBhLQQDMjAHeaQzPT0tASG7iorK0U2kAwC4hIE9PT0HFZYvB7j4+NPQHlxcSGFOD4+Fvnw8xKOUGnwxAWkqakpqSz7CJ/V1dXEmiV+/+To6Pi7CJvFq356ehIHaA2ogPjq6krSRlVbW1ulqoODgyIbyMfX15dKS0spNjYWAf+2tLT8UgLyJAIPHinPz89LFcEXJIJUcdHa2ppIBAjVajWlpqYSNwcqLCwUdEFBQX9+ysP4llXcSf7gFO6A8PT0lJqbm4UXvB6kBc6QKgz/sAfu8Ers7OzecYxv3+s2PD53dXX9FVUFCiCqr6+njo4OSRMBwSN3FylKfn4+MQgKCAhAC1N9rB+aODk5vWUU5+ARUoHu8CpQ0cbGRjFcxA3kkjtRAft8/dEGazRuRabcZH8ICQkpjo6OVjNHmvj4+GXuiyMeHh453ATCzMzMXn3I9x8oCiuuorpqawAAAABJRU5ErkJggg==" alt="" /></a></span><span class="smarterwiki-popup-bubble-links-row"><a href="http://www.google.com/search?q=Marriage%20and%20Communication" target="_blank" title="Search Google" class="smarterwiki-popup-bubble-link"><img class="smarterwiki-popup-bubble-link-favicon" src="https://www.google.com/favicon.ico" alt="" /></a><a href="http://search.surfcanyon.com/search?f=nrl1&amp;q=Marriage%20and%20Communication&amp;partner=fastestfox" target="_blank" title="Search Surf Canyon" class="smarterwiki-popup-bubble-link"><img class="smarterwiki-popup-bubble-link-favicon" src="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AycnKOmdmaastLTDuIB8j/yAfI/87Oz7eg4OFi+no6Rj///8A////AP///wD///8A////AP///wD6+voDfHx+kyAfI/8gHyP/LCsv+FJRVPhHRkr6IiEl/SAfI/8tLTDuuLe5T////wD///8A////AP///wD///8AfHx+kyAfI/8wLzP4qqqr+Pv7+////////////+3t7f+Dg4X9IB8j/yMiJvq/vr9H////AP///wD///8AyMfIPyIhJf8wLzP429vb+P///////////////////////////////66ur/0gHyP/ODc74////wD///8A////AHRzda4wLjH/rKyt+P/////8/Pz/h4eJ/z8+Qv9GRUn/rq6v////////////iIiK/6ijnP/269Y/////AP///wBQTlDzR0VI+vv7+///////oqGh/zg2Of8hICT/IB8j/yAfI//c3Nz/7de7/9alX//GfhL/48KOfv///wD///8AWFZX/3Vzdfr//////////4iGhv9SUFL/MC8z/2ZlaP+1jmz/unMv/7NjFf+zYxX/s2MV/9atin7WrYp+1q2KfmdlZf91c3T8//////////+npaT/bWtr/0tJS/81Mzf/jIB5/9Gidv+/eDD/v3gw/8B6M//NlWD/x4pO/8WFRvqLiIjXbmxs/+rq6v//////6Ofn/4yJiP9lY2T/Q0JE/0tKTf/09PT/9uvc/+K5gP/apFL/9+zaP////wD///8AwcDAe357e/+koqL9///////////09PT/zs3N/8jHx//5+fn//////+7u7/9/f4H/4tfC//rv2T////8A////APb29g+YlZXjhYKB/7W0s//9/f3//////////////////////+vr6/9paGn/NTQ3/319f6f///8A////AP///wD///8A6OjnMpmWle6MiYf/lZOS/8XEw//b2tr/0dHR/6elpv9hYGH/TkxO/25sb8L09PQM////AP///wD///8A////AP///wDv7+4jsa6tu5KPjf+Kh4b/gX59/3h2df9vbW3/amho96alpof4+PgH////AP///wD///8A////AP///wD///8A////AP///wDs6+srz87Nb8XDw37Av75+zMvKXvLy8hT///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAPA/AADAHwAAgA8AAIAHAAAABwAAAAcAAAAHAAAAAAAAAAcAAIAHAACABwAAwA8AAOAfAAD//wAA//8AAA%3D%3D" alt="" /></a></span></span></span></span></span></p>
";s:4:"body";s:0:"";s:10:"convert_lb";i:5;s:6:"status";s:7:"publish";s:14:"allow_comments";i:0;s:8:"keywords";s:0:"";s:11:"extrafields";a:3:{s:14:"seodescription";s:0:"";s:11:"seokeywords";s:0:"";s:8:"seotitle";s:0:"";}s:3:"uid";i:14;s:9:"edit_date";s:16:"2012-11-27-15-48";s:11:"chaptername";s:5:"Pages";s:11:"chapterdesc";s:44:"Add some pages here, or start a new chapter.";}

___________________________________________
* note the messed up characters - The site was hacked way before my time, someone tried to fix it and manually repaired the links, but I think these two pages are messed up. I noted the root directory is not correct in this one in the header of the script: "link";s:8:"/cms/?p=";s:8:"link_end" - the ones working have simply ?p= - I manually repaired the links as in the menu.js they were all pointing to /cms/ rather than the root.

Then again, its also possible that some other menu file has the wrong info. The architecture is confusing as I am dumb on .php and rusty on programming. I am doing this for a favor - personally I would rather redesign the whole site from scratch if I can sort this soon, but would rather not. I seldom do freebies for anyone and usually avoid taking on potential gong show sites like this one. When I offered to simply move the site for my gf's mom, I had no clue the history of hacking, virus infection, etc - oh boy! Now Im stuck with it, but determined to make her happy.

Cheers
Rudy
Rudy
 
Posts: 10
Joined: Wed Feb 05, 2014 6:09 pm

Re: Newbie - problem loading just a couple pages from menu

Postby Rudy » Tue Apr 08, 2014 10:07 pm

and I also rebuilt all the files, indexes from the console.
Rudy
 
Posts: 10
Joined: Wed Feb 05, 2014 6:09 pm

Re: Newbie - problem loading just a couple pages from menu

Postby hansfn » Wed Apr 09, 2014 5:50 am

Rudy, if you send me the two files you think are broken, I can take a look and fix them for you if necessary. Contact me at hansfn@pivotx.net
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway


Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 9 guests

cron