Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3342888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:53:29+00:00 2026-05-18T00:53:29+00:00

This is a bit of an oddity for me. PHP is my forte, and

  • 0

This is a bit of an oddity for me. PHP is my forte, and I can normally figure out any issue I encounter.

I have a custom framework that I have been using for years. I have taken it upon myself to rewrite it, and I’m doing everything essentially the same that I was before. The problem lies in the following construct:

function ModPages_GetPage() {
    $page = ModPages_GetPageByName($_GET['page_name']);
    if($page != false) {
        include(TPL_DIR.'pages/pages.view.php');
    } else {
        ErrorMessage('Invalid Page', 'The selected page could not be found.');
    }
}


function ModPages_GetPageByName($page_name = null) {
    $db = new Database;
    $query = '
        SELECT *
        FROM pages
        WHERE page_name = "'.CleanStr($page_name).'"
            AND page_enabled = "yes"
        LIMIT 1
        ';
    $page = $db->GetRow($query);

    return $page;
}

This code is being called with ‘home’ for the value of $_GET['page_name']. The call to ModPages_GetPageByName() is working fine, but the value of $page in ModPages_GetPage() isn’t getting set. Matter of fact, any debugging statements thrown in after that call are failing to display anything.

I have display_errors set to on, and error_reporting set to E_ALL. I get a couple notices from my Database class, but that’s it.

Running the script at a shell fails to produce any errors. When using strace, I do see the process spits out an ‘exit_group(255)’.

This one has me quite baffled. I could sure use some direction on this.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:53:30+00:00Added an answer on May 18, 2026 at 12:53 am

    While some of you have put extra effort into responding to this, nobody has been able to see the full picture, even given the details I have provided. I have been unable to trace the issue back to its source, but have moved on to a different project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this bit of html. (Link at bottom) Its output of php code
I have this bit of code in a .php file: <?php ec3_get_events( 5, //
I've prepared this bit of code, and as you can see I've commented out
I have this bit of SQL that always returns an error, though I can't
I have this bit of CSS that results in images popping out a bit
IS this bit of code in PHP/mysql considered a stored procedure? $sql = 'SELECT
So I have this bit of code for x in range(x1,x2): for y in
I have this bit of code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;
i have this bit of code, it limits the Li's to 15 of them
I have this bit of code where it displays some locations from an XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.